Difference between revisions of "Imagemagick"

From Habitat: Giardino
Line 10: Line 10:


  magick convert -monochrome /path/to/my/file.jpeg  export.png
  magick convert -monochrome /path/to/my/file.jpeg  export.png
====
magick convert /path/to/my/file.jpeg -colors 3 -colorspace gray -normalize
renders:
[[File:May-2022--Amro.jpeg|thumb|3 colors normalization]]

Revision as of 10:51, 22 May 2022

Imagemagick

Tricks

Gray Scale

 magick convert -set colorspace Gray -separate -average /path/to/my/file.jpeg  export.jpeg

Monochrome

Return bitmap

magick convert -monochrome /path/to/my/file.jpeg  export.png

==

magick convert /path/to/my/file.jpeg -colors 3 -colorspace gray -normalize

renders:

3 colors normalization