This may not necessarily be php related...but you may be able to offer me a better php solution.
I am using the following .sh script:
for img in `ls -r /var/www/html/propimages/*.jpg`
do
convert -sample 104x60 $img thumbs-$img
done
What I am trying to do, is use imagemagicks convert command to create thumbs from the propimages directory. I have several directories under propimages...and the images in these directories also need thumbs.
I added the -r flag thinking it would be recursive...but it doesnt work. How can I alter the above code to get what I am looking for...or can php do this more efficiently? If so, is there simple code already doing this that I can snag somewhere?
Thanks