Skip to content

Instantly share code, notes, and snippets.

@AeliusSaionji
Last active March 9, 2019 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AeliusSaionji/67460bda88b8ccff4d508cc9ae22aa13 to your computer and use it in GitHub Desktop.
Save AeliusSaionji/67460bda88b8ccff4d508cc9ae22aa13 to your computer and use it in GitHub Desktop.
Use graphcsmagick to generate images for the kobo forma screensaver mod
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