2011年6月29日 星期三

[ubuntu] convert picture size


Ubuntu tool

convert picture size is useful.

Example:
1.convert XXX.jpg -resize 10% XXX.jpg
2.convert XXX.jpg -resize 640x480 XXX.jpg
3. convert example.png -resize 200×100! example.png
4. convert example.png -resize 200 example.png
5. for file in *.jpg; do file2=${file%.jpg};convert -verbose -resize 786432@  $file2.jpg happy/$file2.jpg; done;  (Fixed pixel = 786432@)

Change JPG to jpg

for file in *.JPG; do file2=${file%.JPG}; mv $file2.JPG $file2.jpg; done;

 jpg to jpg

for file in *.jpg; do file2=${file%.jpg};convert -verbose -resize 786432@  $file2.jpg happy/$file2.jpg; done;

 JPG to JPG

for file in *.JPG; do file2=${file%.JPG};convert -verbose -resize 786432@  $file2.JPG happy/$file2.JPG; done;

 JPG to jpg

for file in *.JPG; do file2=${file%.JPG};convert -verbose -resize 786432@  $file2.jpg happy/$file2.jpg; done;

PNG to PNG

 for file in *.png; do file2=${file%.png};convert -verbose -resize 786432@  $file2.png happy/$file2.png; done;

PNG to JPG

 for file in *.png; do file2=${file%.png};convert -verbose -resize 786432@  $file2.png happy/$file2.jpg; done;

NEF to JPG

for file in *.NEF; do file2=${file%.NEF};convert -verbose $file2.NEF happy/$file2.jpg; done;

PNG to EPS

for file in *.png; do file2=${file%.png};convert -verbose -resize 70% $file2.png $file2.eps; done;

Reference :

    1 則留言:

    1. A windows display can show you the contents in your monitor. Some of us are very interested in playing games, making graphics contents, watching movies, and many more.

      Are you shouting out for help and saying that “Please Help! No option for 1920×1080 resolution on my laptop.” Well, I am here for you with the solution for how to get 1920x1080 resolution on 1366x768 screen windows 7. Technology is updating day by day, and you need to know the essential tech-related functions to keep pace with the flowing era.

      If you are using a personal laptop and it has an 1366×768 screen, then you can’t enjoy the full HD video on that. So what to do? You need to increase the display resolution from HD to full HD.

      回覆刪除