Free web development scripts for the webmasterDevelopment Scripts

 Site Navigation
 o Development Scripts
 o Text Only Edition
 o PHP.net News
 o Tutorials
 o Register an account
 o New entries this week
 o Affiliates/Links
 o Contact Us
 o About us
 o Advanced Search

 Browse Path
 o 2 users online
 o Most users online: 67
 o Home
  o Shell
   o Image and Graphics
    o Script

 Member Login
User Name
Password

 Standards
Valid XHTML 1.0!
Valid 
CSS!

 Recommended Links
 o PHP Freaks
 o Designer Baby Clothes
 o Advertise Here Make Money
 o Open Source Design
 o Wedding Vendor Directory
 o OxyScripts
 o devnet
 o Free Wedding Websites
 o designplace

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


Rate This Script

User Contributed Comments

Registered Members login
© Copyright 2003 - Devscripts.net