Created
February 26, 2015 09:43
-
-
Save smndhm/7f5c1b54948c5cd4b055 to your computer and use it in GitHub Desktop.
Pebble opaque/dithering images - http://developer.getpebble.com/blog/2014/10/29/Displaying-remote-images/
This file contains hidden or 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
convert myimage.png \ | |
-adaptive-resize '144x168>' \ | |
-fill '#FFFFFF00' -opaque none \ | |
-type Grayscale -colorspace Gray \ | |
-black-threshold 30% -white-threshold 70% \ | |
-ordered-dither 2x1 \ | |
-colors 2 -depth 1 \ | |
-define png:compression-level=9 -define png:compression-strategy=0 \ | |
-define png:exclude-chunk=all \ | |
myimage.pbl.png |
This file contains hidden or 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
convert myimage.png \ | |
-adaptive-resize '144x168>' \ | |
-fill '#FFFFFF00' -opaque none \ | |
-type Grayscale -colorspace Gray \ | |
-colors 2 -depth 1 \ | |
-define png:compression-level=9 -define png:compression-strategy=0 \ | |
-define png:exclude-chunk=all \ | |
myimage.pbl.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment