- ONLY convert the files in the directory where this script is.
- “-density 150″ is the resolution, in this case 150 dpi
- -geometry 100% is the scale you want to resize by %
- also, you can convert lots of JPEG to smaller resolution, just change .ps to .jpg, and change the output to another directory, either using .jpg or .png
———— following lines are the content of the script ———
#!/bin/sh
########################
## using “convert” from ImageMagick to do ps convert into PNG
#########################
echo PS convert to PNG, please wait the process
for INP in *.ps
do
newname=`basename $INP .ps`
convert -density 150 -geometry 100% $INP $newname%02d.png
echo ” convert $INP to $newname.png completely”
done
echo ” process ended, please check your graphical files”
thanks mann..
Comment by yag — May 31, 2009 @ 3:59 am |