imagemagick can do almost everything .....

convert -thumbnail widthxheight a.png a.thumbnail.png

  • convert -thumbnail 120 a.png a.thumb.png    (width 120px)
  • convert -thumbnail 120x120 a.png a.thumb.png   (width/height 120px)
  • convert -thumbnail x120 a.png a.thumb.png (height 120px)


'Computer > linux' 카테고리의 다른 글

make an audio cd from an avi source  (0) 2011.10.09
create a thumbnail by command line  (0) 2011.09.27
Crop a pdf file to reduce a page margin in Linux  (0) 2011.06.23
email forward by using .forward  (0) 2011.06.05
posted by citadel
How to do screenshot with ImageMagick in the xterm.

$ import screenshot.png

$ import -frame screenshot.png

  • The above command changes the mouse icon (cross symbol)
  • choose the window you want to make the screenshot.
  • -frame option includes window manager frame

$ import -window root screenshot.png
  • screenshot with all screens and windows...

more detailed infos about import: http://linuxreviews.org/man/import/

You shoud install the ImageMagick programe before.

posted by citadel