diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2022-12-19 14:23:02 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-01-19 20:34:48 +0000 |
| commit | 87f21b2de436477e5d92cfe9850583296a88a90c (patch) | |
| tree | 0879c3d5d05c193961f40c0cf3db782f1e4b3766 | |
| parent | 2a4abce8a8ae957df4e3cbe2d6fc78d6ff10d69b (diff) | |
| download | puzzles-87f21b2de436477e5d92cfe9850583296a88a90c.zip puzzles-87f21b2de436477e5d92cfe9850583296a88a90c.tar.gz puzzles-87f21b2de436477e5d92cfe9850583296a88a90c.tar.bz2 puzzles-87f21b2de436477e5d92cfe9850583296a88a90c.tar.xz | |
Generate a possibly suitable marketing banner for the KaiStore
It wants a 240x130 pixel JPEG. I've gone for rotating the screenshot
a bit because the store overlays text on the picture and I don't want
horizontal lines in the picture confusing the text. I think the store
handles dimming the image, so the picture we produce is at full
brightness.
| -rw-r--r-- | icons/icons.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/icons/icons.cmake b/icons/icons.cmake index dbfc39c..492007c 100644 --- a/icons/icons.cmake +++ b/icons/icons.cmake @@ -138,6 +138,17 @@ function(build_icon name) ${icon_bindir}/${name}-base.png) list(APPEND output_icon_files ${icon_bindir}/${name}-web.png) + # Shrink differently to an oblong for the KaiStore marketing + # banner. This is dimmed behind the name of the application, so put + # it at a jaunty angle to avoid unfortunate interactions with the + # text. + add_custom_command(OUTPUT ${icon_bindir}/${name}-banner.jpg + COMMAND ${CONVERT} ${icon_bindir}/${name}-base.png + -crop 1:1+0+0 -rotate -10 +repage -shave 13% -resize 240 -crop x130+0+0 + ${icon_bindir}/${name}-banner.jpg + DEPENDS ${icon_bindir}/${name}-base.png) + list(APPEND output_icon_files ${icon_bindir}/${name}-banner.jpg) + # Make the base image for all the icons, by cropping out the most # interesting part of the whole screenshot. add_custom_command(OUTPUT ${icon_bindir}/${name}-ibase.png |