Subpixel image resizing using imagemagick convert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
convert ResizeTestImage.png -gamma 0.5 -filter Mitchell -resize 800x200! -morphology Convolve "3x1: 0.33, 0.34, 0.33" -channel Red -morphology Convolve "3x1: 0.0, 0.0, 1.0" -channel Green -morphology Convolve "3x1: 0.0, 1.0, 0.0" -channel Blue -morphology Convolve "3x1: 1, 0, 0" +channel -filter Point -resize 267x200! -gamma 2.0 -depth 8 ResizeTestSubpixel.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resize with subpixel accuracy (cleartype)
Based on i believe this thread http://www.imagemagick.org/discourse-server/viewtopic.php?t=19120 and here is the result of image downscaled from 800x600 to 267x200 pixels. Bottom image is for comparison.
I believe it's more suitable for vector graphics (fonts, graphs, ...) and photos seem to be more blurred