Arquivo da tag: terminal

An Easy Way to Resize and Convert Images From Linux Terminal

ImageMagick is a easy tool to work with images from terminal.

“ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 100) including DPXEXR, GIF, JPEG, JPEG-2000, PDF, PNG, Postscript, SVG, and TIFF. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves”


$sudo apt-get install imagemagick

Converting between formats

$convert my_image.png my_new_image.jpg

Resizing images

$convert my_image.png -resize 200×100 my_new_image.png