Difference between revisions of "JPG"

From Teknologisk videncenter
Jump to: navigation, search
m
m (Resize)
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
==Progressive JPG==
 
==Progressive JPG==
 
Shows image in low quality immediately and enhance quality as the download progresses.
 
Shows image in low quality immediately and enhance quality as the download progresses.
<source lnag=cli>
+
<source lang=cli>
 
root@mars:/var/www/data/svp#<input>jpegtran -progressive Image0013.JPG > i13p.JPG</input>
 
root@mars:/var/www/data/svp#<input>jpegtran -progressive Image0013.JPG > i13p.JPG</input>
 
root@mars:/var/www/data/svp#<input>ls -l</input>
 
root@mars:/var/www/data/svp#<input>ls -l</input>
Line 13: Line 13:
  
 
==Resize==
 
==Resize==
 +
Resize the image to maximum width or height. Does not change the format of the image, only resizes it.
 
<source lang=cli>
 
<source lang=cli>
 
root@mars:/var/www/data/svp#<input>convert i13p.JPG -resize 100x100 i13p-100.JPG</input>
 
root@mars:/var/www/data/svp#<input>convert i13p.JPG -resize 100x100 i13p-100.JPG</input>

Latest revision as of 13:57, 24 February 2014

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