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>
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
Yes, I am very new to shell scripting ^_^;;