User Tools

Site Tools


You are not allowed to perform this action
terminalimagepdfmanipulation

Table of Contents

Image and PDF manipulation on the Terminal

Images

Basic file format conversion convert <input> [output]
convert -quality <percentage> <input> [output]
scale image (keep ratio) sips -Z <width> <input]
convert <file> -resize <width>x [output]
convert <file> -resize x<height> [output]
convert <file> -resize <percent>% [output]
scale image (custom ratio) sips -z <height> <width> [output]
convert <file> -resize <width>x<height> [output]
scale all images in directory sips --resampleWidth <width> <dir>
Metadata show metadata identify -verbose <input>
exif <input>
strip EXIF information and color profiles mogrify -strip <input> [output]
Geometry rotate convert <input> -rotate <degrees> [output]
convert <input> -rotate <degrees> -background <color/none> [output]
mirror vertically convert <input> -flip [output]
mirror horizontally convert <input> -flop [output]
Effects Blur convert <input> -blur [output]
convert <input> -gaussian-blur [output]
Sharpen convert <input> -sharpen <sigma>x<radius>
e.g. convert <input> -sharpen 0.5×1.0 [output]
Convert to grayscale convert <input> -colorspace gray [output]

PDF

Convert PDF to image convert -density <dpi> <input> <output>
Convert single page to image convert <input>[0] <output>
Convert page range to image convert <input>[0-5] <output>
Convert image to PDF img2pdf <input> [moreinput] -o <output>
terminalimagepdfmanipulation.txt · Last modified: by wolfo

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki