Last active
March 9, 2019 23:05
-
-
Save AeliusSaionji/67460bda88b8ccff4d508cc9ae22aa13 to your computer and use it in GitHub Desktop.
Use graphcsmagick to generate images for the kobo forma screensaver mod
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
The screensaver mod renders only png images 1:1 to the top-left corner of the screen. | |
So we need to | |
- Resize larger images down to the screen resolution (1440x1920) | |
- Resize smaller images up to the screen resolution | |
- Composite images centered on top of a canvas sized 1440x1920 - images not exactly 1440x1920 will be centered | |
- Convert to grayscale | |
gm.exe mogrify -output-directory kobo -format png -type Grayscale -geometry '1440x1920' -gravity center -extent '1440x1920' * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment