Re: how to detect if a jpeg file is progressive or not
Am 2006-05-31 20:17:34, schrieb H.S.:
> That was really great help. Thank a ton. The problem of identifying an
> image as progressive or not is solved.
I use the "netpbm" package and its tools.
> The problem left is to convert all my current jpegs into progressive
> ones. jpegtran did the job (the following is one long command):
> $> for f in *.jpg; do echo "$f"; mv "$f" tmp.jpg; jpegtran -progressive
> tmp.jpg > "$f"; rm -f tmp.jpg; done
>
> (I am sure there is a way to use the stdout and stdin in this procedure
> instead of tmp.jpg, but I didn't check)
Why not use netpbm?
for f in *.jpg; do
echo "$f"
jpegtoppm "$f" |ppmtojpeg -progressive > "$f".tmp
mv -f "$f".tmp "$f"
done
Greetings
Michelle Konzack
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Reply to: