Skip to content

Generate Angled Halftone Ordered Dither Threshold Maps of arbitrary size for ImageMagick

Notifications You must be signed in to change notification settings

neCo2/ImageMagick-Ordered-Dither-Halftone-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ImageMagick-Ordered-Dither-Halftone-Generator

This script generates 45° angled Halftone Ordered Dither Threshold Maps of arbitrary size for ImageMagick 7. See the ImageMagick documentation.

Visualizations of each map are provided in the svg directory.

To use the pre-generated maps, copy the contents of thresholds.xml into ImageMagick's thresholds.xml file, which can be found on windows in your installation directory, and on Linux under ~/.magick/thresholds.xml. DO NOT OVERWRITE THE CONTENTS OF THE FILE, JUST APPEND THE NEW MAPS.

After saving ImageMagick's thresholds.xml file, you can now apply the maps using the specified names (map="h12x12a" etc.). For example:

magick input.png -colorspace Gray -ordered-dither h12x12a output.png

To use the script yourself to generate maps with different sizes than provided, adjust the range on line 118 of the script and run it.

About

Generate Angled Halftone Ordered Dither Threshold Maps of arbitrary size for ImageMagick

Topics

Resources

Stars

Watchers

Forks

Languages