JPG

From Teknologisk videncenter
Revision as of 12:57, 24 February 2014 by Heth (talk | contribs) (Resize)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Eksterne Links

Linux JPG tools

Progressive JPG

Shows image in low quality immediately and enhance quality as the download progresses.

root@mars:/var/www/data/svp#<input>jpegtran -progressive Image0013.JPG > i13p.JPG</input>
root@mars:/var/www/data/svp#<input>ls -l</input>
-rw-r--r-- 1 root root   671930 2014-02-24 11:46 i13p.JPG
-rw-r--r-- 1 root root   708954 2014-02-24 11:34 Image0013.JPG

Resize

Resize the image to maximum width or height. Does not change the format of the image, only resizes it.

root@mars:/var/www/data/svp#<input>convert i13p.JPG -resize 100x100 i13p-100.JPG</input>
root@mars:/var/www/data/svp#<input>ls -l</input>
-rw-r--r-- 1 root root     2410 2014-02-24 11:57 i13p-100.JPG
-rw-r--r-- 1 root root   671930 2014-02-24 11:46 i13p.JPG
-rw-r--r-- 1 root root   708954 2014-02-24 11:34 Image0013.JPG