Skip to content

Commit

Permalink
*force ImageMagick to use the original BMP3 format, so that the launc…
Browse files Browse the repository at this point in the history
…her can actually read it. that's what the original main.bmp files use, according to the «identify» ImageMagick command. It will remove any existing alpha-channel in there, though. So only for fully opaque images, not a problem here.
  • Loading branch information
Swyter committed Aug 20, 2017
1 parent 357a269 commit 94d4cc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.sh
Expand Up @@ -49,10 +49,11 @@ _fold_start_ "[Composite custom launcher images for revision $SVNREV]"
curl -LOJ https://github.com/tldmod/tldmod/releases/download/TLD3.3REL/Retrovirus.ttf

# draw the text and shadow over the backplate, overwriting the original main.bmp
# (the older BMP3 format doesn't support alpha channels, but is the only thing the launcher reads)
convert main_swy_pngquant.png -font Retrovirus.ttf -pointsize 16 -gravity SouthWest \
-fill '#28292c' -annotate +10+8 "$IMAGE_TEXT" \
-fill '#e4eca0' -annotate +09+9 "$IMAGE_TEXT" \
-type truecolor main.bmp
-type truecolor bmp3:main.bmp

# add a copy for warband, delete the things we just downloaded
cp main.bmp ./_wb/ && rm main_swy_pngquant.png && rm Retrovirus.ttf
Expand Down

0 comments on commit 94d4cc4

Please sign in to comment.