[magick-users] newbie needs help with convert script
Vaskark
vaskark at gmail.com
Fri May 1 16:31:42 PDT 2009
Hi. I made a test script to convert all jpeg's in a single folder to a
quality of 85, keeping the same filenames. It worked fine. This is the
script:
#!/bin/sh
for img in `ls *.jpg`
do
convert $img -quality 85 $img
done
Now, my music folder is organized by artist, then album, then track title
(i.e. Pink Floyd/The Wall/Hey You.mp3). Each folder in this nested structure
also contains album art, named folder.jpg. What I need to do is convert each
'folder.jpg' to a quality of 85. I'm thinking the 'ls' command can't help me
here. Does anyone have any advice to help with my goal?
Any help is appreciated.
Thanks.
More information about the Magick-users
mailing list