Error with resizing content of folder
Posted: 2012-10-17T11:00:53-07:00
Hello,
I have a bash script operating with ImageMagick and I can't get resized image.
When I execute script.sh, an error message for each file suddenly appears!
http://stepolabs.com/lab/img/error-execute.png
But my files are here!
http://stepolabs.com/lab/img/files.png
Please do you know where is problem?
Thank you very much,
Stepo
I have a bash script operating with ImageMagick and I can't get resized image.
Code: Select all
#!/bin/bash
FILES=/srv/www/vhosts/detsky-pokoj.biz/httpdocs/components/com_virtuemart/shop_image/product/*
for f in $FILES
do
if [[ $f == *.jpg ]]; then
convert -resize 175x175 $f
fi
done;
http://stepolabs.com/lab/img/error-execute.png
But my files are here!
http://stepolabs.com/lab/img/files.png
Please do you know where is problem?
Thank you very much,
Stepo