Results 1 to 1 of 1
Hi guys. I will be frequently needing to convert .jpg files to 183x183 .png thumbnails. I can't quite seem to wrap my head around how to make a for loop ...
- 04-17-2011 #1Just Joined!
- Join Date
- Apr 2011
- Posts
- 1
Bash: Converting jpgs to pngs
Hi guys. I will be frequently needing to convert .jpg files to 183x183 .png thumbnails. I can't quite seem to wrap my head around how to make a for loop to do this.
With the help of my friend (who may have mislead me, I'm quite confused) I've got this.
This is bash
the command is: pngify <source directory> <destination directoy>
Yes, I am very new to shell scripting ^_^;;Code:for picture in $(?) ====> I'm quite sure this part is wrong... do echo ${picture%.*}>picturewithoutext =====|This part is to remove the picnoext=`cat picturewithoutext` ======|extension so I can name rm picturewithoutext =======|the new file the same thing with a .png convert -size 183x183 $1/$picture $2/$picnoext.png done


Reply With Quote