You are not logged in.
Pages: 1
hi,
can anybody here help me out with this?
#!/bin/bash
#shell script for resize
for i in $(find ./ -name "*.jpg");
do imlib2_convert "$i" -scale 80x60 "thumb-${i}"
done
I am running the script and it doesn't return any errors but it also doesn't create any thumbnails. what could be wrong?
Offline
for:
for ITEM in LIST; do
echo $ITEM
done
The find expression wasn't working for all files:
for i in `find ~ -name *.jpg`; do
echo $i
done
If it's working You can change the echo to imblib convert.
Offline
Well, two things:
- unless there's something wrong with my imlib2 install, the command is imlib2_conv, not imlib2_convert.
- imlib2_conv converts image formats e.g. png to jpg, and takes just two arguments, input file name and output file name.
If I'm on the wrong track, fell free to to let me know.
Offline
Well, two things:
- unless there's something wrong with my imlib2 install, the command is imlib2_conv, not imlib2_convert.
- imlib2_conv converts image formats e.g. png to jpg, and takes just two arguments, input file name and output file name.If I'm on the wrong track, fell free to to let me know.
i think you're wrong.
imlib2_conv may convert from jpg to png and backwards. but "imlib2_convert" is basically a copy of imagemagick's "convert" which have -resize and -scale as flags respectively.
i am sure about the command coz it works on the command line, just not in the script.
Offline
OK - thanks. For my own curiosity, which package provides imlib2_convert? I have the 1.2.1-2 package installed, but I don't have that command.
Offline
OK - thanks. For my own curiosity, which package provides imlib2_convert? I have the 1.2.1-2 package installed, but I don't have that command.
i think there is an e17 package in one of the repos, but it's not up to date.
i have it installed from cvs with enlightenment 17 it's called imlib2_tools.
Offline
Thanks - that clears that up.
Offline
To avoid problems with whitespace your probably want:
find /path -iname "*.jpg" -execdir convert {} -scale 80x60 thumb-{} ;
Offline
Pages: 1