Convert Progressive JPG to Normal (Rated 4)Description:
convert "Progressive" jpg files, as often found on websites, to normal jpg, that can be displayed with xv. Code starts here
#!/bin/sh
#fixjpg: convert "Progressive" jpg files to normal jpg
for i in "$@"
do
if djpeg < $i | cjpeg > $i.new
then
mv $i /tmp/
mv $i.new $i
rm /tmp/$i
else
echo "fixjpg: failed on $i"
fi
done
Submitted by Devscripts on 27-02-2003 20:34 |