FILES=/srv/www/vhosts/detsky-pokoj.biz/httpdocs/components/com_virtuemart/shop_image/product/*
I am not a unix expert, but I am not sure this actually gets a list of your files. I think you need to add ls
FILES=`ls /srv/www/vhosts/detsky-pokoj.biz/httpdocs/components/com_virtuemart/shop_image/product/`
I defer to any unix expert on this
if [[ $f == *.jpg ]]; then
convert -resize 175x175 $f
fi
This also seems odd to me. I do not understand your if test. I am not sure you can do such a wildcard test and if you could, you probably would need to put "" around the $f and the *.jpg as they are strings and not integers. Also I don't know about double brackets for tests.
But more importantly your convert command is wrong. YOu have specified no input images
convert input -resize ... output
is the correct format, even if you want to override the input with the output by using the same name.
However, there is an easier way to do this by using mogrify, which processes all images in a folder. See
http://www.imagemagick.org/Usage/basics/#mogrify. I would suggest you use the -path option to specify a new folder to put the output images.
create a new folder, then
cd path2imagefolder
mogify -path path2newimagefolder -format jpg -resize 175x175 *.jpg