Difference between revisions of "JPG"

From Teknologisk videncenter
Jump to: navigation, search
m (New page: =Eksterne Links= *[http://en.wikipedia.org/wiki/Jpg Wikipedia on JPG] *[http://www.scantips.com/ Scantips about pictures] Category:Images)
 
m (Resize)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
*[http://en.wikipedia.org/wiki/Jpg Wikipedia on JPG]
 
*[http://en.wikipedia.org/wiki/Jpg Wikipedia on JPG]
 
*[http://www.scantips.com/ Scantips about pictures]
 
*[http://www.scantips.com/ Scantips about pictures]
 +
=Linux JPG tools=
 +
==Progressive JPG==
 +
Shows image in low quality immediately and enhance quality as the download progresses.
 +
<source lang=cli>
 +
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
 +
</source>
 +
 +
==Resize==
 +
Resize the image to maximum width or height. Does not change the format of the image, only resizes it.
 +
<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>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
 +
</source>
 +
{{Source cli}}
 
[[Category:Images]]
 
[[Category:Images]]

Latest revision as of 12: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