Burn all GIFs: Convert everything to PNGs.

DeuTex 5 now supports these, and we can use real transparency indexes
in the files too, so no more ugly cyan background!
This commit is contained in:
Mike Swanson 2017-07-18 22:18:14 -07:00
parent 96ca8bf67b
commit 9c6c681276
5952 changed files with 243 additions and 252 deletions

View file

@ -1,18 +1,18 @@
m_*.gif
wi*.gif
wilv*.gif
cwilv*.gif
m_*.png
wi*.png
wilv*.png
cwilv*.png
data.stamp
dmwilv*.gif
dmwilv*.png
helpbg.png
help.gif
help.png
helpoverlay.png
helpttl.gif
prboom.gif
helpttl.png
prboom.png
graphics.stamp
textgen.mk
credit.gif
credit.png
credtext*.png
freettl.gif
freettl.png
helptext*.png
wikilrs_horiz.png

View file

@ -1,58 +1,58 @@
# textgen outputs these files which are included in the built WADs
# as lumps.
TEXTGEN_GRAPHIC_LUMPS = \
m_detail.gif m_disopt.gif m_disp.gif m_endgam.gif m_epi1.gif \
m_epi2.gif m_epi3.gif m_epi4.gif m_episod.gif m_gdhigh.gif \
m_gdlow.gif m_hurt.gif m_jkill.gif m_lgttl.gif m_loadg.gif \
m_messg.gif m_msens.gif m_msgoff.gif m_msgon.gif m_musvol.gif \
m_newg.gif m_ngame.gif m_nmare.gif m_option.gif m_optttl.gif \
m_pause.gif m_quitg.gif m_rdthis.gif m_rough.gif m_saveg.gif \
m_scrnsz.gif m_sfxvol.gif m_sgttl.gif m_skill.gif m_svol.gif \
m_about.gif m_accel.gif m_auto.gif m_chat.gif m_chatm.gif \
m_compat.gif m_demos.gif m_dmflag.gif m_enem.gif m_etcopt.gif \
m_feat.gif m_generl.gif m_gset.gif m_horsen.gif m_hud.gif \
m_joyset.gif m_keybnd.gif m_ldsv.gif m_loksen.gif m_menus.gif \
m_mess.gif m_mouse.gif m_multi.gif m_player.gif m_serial.gif \
m_setup.gif m_sound.gif m_stat.gif m_status.gif m_tcpip.gif \
m_versen.gif m_video.gif m_wad.gif m_wadopt.gif m_weap.gif \
prboom.gif t_phase1.gif t_phase2.gif \
m_ultra.gif wibp1.gif wibp2.gif wibp3.gif wibp4.gif \
wicolon.gif wienter.gif wif.gif wifrgs.gif wipcnt.gif \
wiminus.gif wimstar.gif wimstt.gif wiostf.gif wiosti.gif \
wiostk.gif wiosts.gif wiscrt2.gif wisucks.gif witime.gif \
wip1.gif wip2.gif wip3.gif wip4.gif wipar.gif \
winum0.gif winum1.gif winum2.gif winum3.gif winum4.gif \
winum5.gif winum6.gif winum7.gif winum8.gif winum9.gif \
dmwilv00.gif dmwilv01.gif dmwilv02.gif dmwilv03.gif dmwilv04.gif \
dmwilv05.gif dmwilv06.gif dmwilv07.gif dmwilv08.gif dmwilv09.gif \
dmwilv10.gif dmwilv11.gif dmwilv12.gif dmwilv13.gif dmwilv14.gif \
dmwilv15.gif dmwilv16.gif dmwilv17.gif dmwilv18.gif dmwilv19.gif \
dmwilv20.gif dmwilv21.gif dmwilv22.gif dmwilv23.gif dmwilv24.gif \
dmwilv25.gif dmwilv26.gif dmwilv27.gif dmwilv28.gif dmwilv29.gif \
dmwilv30.gif dmwilv31.gif \
cwilv00.gif cwilv01.gif cwilv02.gif cwilv03.gif cwilv04.gif \
cwilv05.gif cwilv06.gif cwilv07.gif cwilv08.gif cwilv09.gif \
cwilv10.gif cwilv11.gif cwilv12.gif cwilv13.gif cwilv14.gif \
cwilv15.gif cwilv16.gif cwilv17.gif cwilv18.gif cwilv19.gif \
cwilv20.gif cwilv21.gif cwilv22.gif cwilv23.gif cwilv24.gif \
cwilv25.gif cwilv26.gif cwilv27.gif cwilv28.gif cwilv29.gif \
cwilv30.gif cwilv31.gif \
wilv00.gif wilv01.gif wilv02.gif wilv03.gif wilv04.gif \
wilv05.gif wilv06.gif wilv07.gif wilv08.gif wilv10.gif \
wilv11.gif wilv12.gif wilv13.gif wilv14.gif wilv15.gif \
wilv16.gif wilv17.gif wilv18.gif wilv20.gif wilv21.gif \
wilv22.gif wilv23.gif wilv24.gif wilv25.gif wilv26.gif \
wilv27.gif wilv28.gif wilv30.gif wilv31.gif wilv32.gif \
wilv33.gif wilv34.gif wilv35.gif wilv36.gif wilv37.gif \
wilv38.gif
m_detail.png m_disopt.png m_disp.png m_endgam.png m_epi1.png \
m_epi2.png m_epi3.png m_epi4.png m_episod.png m_gdhigh.png \
m_gdlow.png m_hurt.png m_jkill.png m_lgttl.png m_loadg.png \
m_messg.png m_msens.png m_msgoff.png m_msgon.png m_musvol.png \
m_newg.png m_ngame.png m_nmare.png m_option.png m_optttl.png \
m_pause.png m_quitg.png m_rdthis.png m_rough.png m_saveg.png \
m_scrnsz.png m_sfxvol.png m_sgttl.png m_skill.png m_svol.png \
m_about.png m_accel.png m_auto.png m_chat.png m_chatm.png \
m_compat.png m_demos.png m_dmflag.png m_enem.png m_etcopt.png \
m_feat.png m_generl.png m_gset.png m_horsen.png m_hud.png \
m_joyset.png m_keybnd.png m_ldsv.png m_loksen.png m_menus.png \
m_mess.png m_mouse.png m_multi.png m_player.png m_serial.png \
m_setup.png m_sound.png m_stat.png m_status.png m_tcpip.png \
m_versen.png m_video.png m_wad.png m_wadopt.png m_weap.png \
prboom.png t_phase1.png t_phase2.png \
m_ultra.png wibp1.png wibp2.png wibp3.png wibp4.png \
wicolon.png wienter.png wif.png wifrgs.png wipcnt.png \
wiminus.png wimstar.png wimstt.png wiostf.png wiosti.png \
wiostk.png wiosts.png wiscrt2.png wisucks.png witime.png \
wip1.png wip2.png wip3.png wip4.png wipar.png \
winum0.png winum1.png winum2.png winum3.png winum4.png \
winum5.png winum6.png winum7.png winum8.png winum9.png \
dmwilv00.png dmwilv01.png dmwilv02.png dmwilv03.png dmwilv04.png \
dmwilv05.png dmwilv06.png dmwilv07.png dmwilv08.png dmwilv09.png \
dmwilv10.png dmwilv11.png dmwilv12.png dmwilv13.png dmwilv14.png \
dmwilv15.png dmwilv16.png dmwilv17.png dmwilv18.png dmwilv19.png \
dmwilv20.png dmwilv21.png dmwilv22.png dmwilv23.png dmwilv24.png \
dmwilv25.png dmwilv26.png dmwilv27.png dmwilv28.png dmwilv29.png \
dmwilv30.png dmwilv31.png \
cwilv00.png cwilv01.png cwilv02.png cwilv03.png cwilv04.png \
cwilv05.png cwilv06.png cwilv07.png cwilv08.png cwilv09.png \
cwilv10.png cwilv11.png cwilv12.png cwilv13.png cwilv14.png \
cwilv15.png cwilv16.png cwilv17.png cwilv18.png cwilv19.png \
cwilv20.png cwilv21.png cwilv22.png cwilv23.png cwilv24.png \
cwilv25.png cwilv26.png cwilv27.png cwilv28.png cwilv29.png \
cwilv30.png cwilv31.png \
wilv00.png wilv01.png wilv02.png wilv03.png wilv04.png \
wilv05.png wilv06.png wilv07.png wilv08.png wilv10.png \
wilv11.png wilv12.png wilv13.png wilv14.png wilv15.png \
wilv16.png wilv17.png wilv18.png wilv20.png wilv21.png \
wilv22.png wilv23.png wilv24.png wilv25.png wilv26.png \
wilv27.png wilv28.png wilv30.png wilv31.png wilv32.png \
wilv33.png wilv34.png wilv35.png wilv36.png wilv37.png \
wilv38.png
# The full set of graphics outputted by textgen includes a couple of
# extra files that are just intermediates, and are not lumps to be
# incuded in the WADs:
TEXTGEN_GRAPHICS = $(TEXTGEN_GRAPHIC_LUMPS) \
helpttl.gif freettl.gif
helpttl.png freettl.png
all: graphics.stamp help.gif credit.gif wikilrs.gif wivctms.gif
all: graphics.stamp help.png credit.png wikilrs.png wivctms.png
# textgen creates multiple outputs, which is awkward to express in
# make. Use a witness file (graphics.stamp) as suggested in the
@ -75,109 +75,109 @@ textgen.mk: config.py fontchars ../../lumps/dehacked.lmp
include textgen.mk
# Generate transparent image containing text for the HELP screen:
helptext.png: helpttl.gif
helptext.png: helpttl.png
python smtextgen helptext.png 320x200 \
150,5 "file:helpttl.gif" \
150,5 "file:helpttl.png" \
10,25 "Weapons" \
80,25 "file:../../sprites/shota0.gif" \
150,25 "file:../../sprites/sgn2a0.gif" \
210,20 "file:../../sprites/mguna0.gif" \
10,40 "file:../../sprites/launa0.gif" \
80,40 "file:../../sprites/plasa0.gif" \
150,40 "file:../../sprites/bfuga0.gif" \
240,40 "file:../../sprites/csawa0.gif" \
80,25 "file:../../sprites/shota0.png" \
150,25 "file:../../sprites/sgn2a0.png" \
210,20 "file:../../sprites/mguna0.png" \
10,40 "file:../../sprites/launa0.png" \
80,40 "file:../../sprites/plasa0.png" \
150,40 "file:../../sprites/bfuga0.png" \
240,40 "file:../../sprites/csawa0.png" \
10,67 "Ammo" \
53,67 "file:../../sprites/clipa0.gif" \
68,62 "file:../../sprites/ammoa0.gif" \
53,67 "file:../../sprites/clipa0.png" \
68,62 "file:../../sprites/ammoa0.png" \
110,67 "Shells" \
160,67 "file:../../sprites/shela0.gif" \
180,62 "file:../../sprites/sboxa0.gif" \
160,67 "file:../../sprites/shela0.png" \
180,62 "file:../../sprites/sboxa0.png" \
220,67 "Backpack" \
290,55 "file:../../sprites/bpaka0.gif" \
290,55 "file:../../sprites/bpaka0.png" \
10,90 "Missiles" \
76,78 "file:../../sprites/rocka0.gif" \
95,82 "file:../../sprites/broka0.gif" \
76,78 "file:../../sprites/rocka0.png" \
95,82 "file:../../sprites/broka0.png" \
170,90 "Energy" \
220,90 "file:../../sprites/cella0.gif" \
240,81 "file:../../sprites/celpa0.gif" \
220,90 "file:../../sprites/cella0.png" \
240,81 "file:../../sprites/celpa0.png" \
10,115 "Health" \
63,113 "file:../../sprites/bon1a0.gif" \
78,112 "file:../../sprites/stima0.gif" \
96,107 "file:../../sprites/media0.gif" \
128,107 "file:../../sprites/pstra0.gif" \
63,113 "file:../../sprites/bon1a0.png" \
78,112 "file:../../sprites/stima0.png" \
96,107 "file:../../sprites/media0.png" \
128,107 "file:../../sprites/pstra0.png" \
170,115 "Armor" \
220,113 "file:../../sprites/bon2a0.gif" \
240,105 "file:../../sprites/arm1b0.gif" \
280,105 "file:../../sprites/arm2b0.gif" \
220,113 "file:../../sprites/bon2a0.png" \
240,105 "file:../../sprites/arm1b0.png" \
280,105 "file:../../sprites/arm2b0.png" \
145,140 "Map" \
175,130 "file:../../sprites/pmapa0.gif" \
175,130 "file:../../sprites/pmapa0.png" \
10,140 "Overdrive" \
84,132 "file:../../sprites/soula0.gif" \
110,132 "file:../../sprites/megaa0.gif" \
84,132 "file:../../sprites/soula0.png" \
110,132 "file:../../sprites/megaa0.png" \
10,163 "Night vis." \
80,160 "file:../../sprites/pvisa0.gif" \
80,160 "file:../../sprites/pvisa0.png" \
10,182 "Stealth" \
67,172 "file:../../sprites/pinsa0.gif" \
67,172 "file:../../sprites/pinsa0.png" \
115,182 "Invuln." \
170,174 "file:../../sprites/pinva0.gif" \
170,174 "file:../../sprites/pinva0.png" \
255,182 "Keys" \
246,142 "file:../../sprites/rkeya0.gif" \
261,142 "file:../../sprites/ykeya0.gif" \
276,142 "file:../../sprites/bkeya0.gif" \
246,162 "file:../../sprites/rskua0.gif" \
261,162 "file:../../sprites/yskua0.gif" \
276,162 "file:../../sprites/bskua0.gif" \
246,142 "file:../../sprites/rkeya0.png" \
261,142 "file:../../sprites/ykeya0.png" \
276,142 "file:../../sprites/bkeya0.png" \
246,162 "file:../../sprites/rskua0.png" \
261,162 "file:../../sprites/yskua0.png" \
276,162 "file:../../sprites/bskua0.png" \
130,163 "Hazard suit" \
215,142 "file:../../sprites/suita0.gif"
215,142 "file:../../sprites/suita0.png"
# Make background transparent so it can be overlayed.
helptext2.png : helptext.png
convert helptext.png -transparent '#00ffff' helptext2.png
# Background for the help screen is a color shifted version of INTERPIC:
helpbg.png: ../interpic.gif
convert ../interpic.gif -fill '#5599ff' -tint 100 helpbg.png
helpbg.png: ../interpic.png
convert ../interpic.png -fill '#5599ff' -tint 100 helpbg.png
# Draw the overlay with text and sprites onto the background to get the
# HELP screen:
help.gif: helpbg.png helptext2.png
help.png: helpbg.png helptext2.png
convert helpbg.png \
-draw 'image over 0,0 0,0 helptext2.png' \
help.gif
help.png
cp $@ ../
credtext.png: freettl.gif credit.txt
credtext.png: freettl.png credit.txt
python smtextgen credtext.png 320x200 \
120,5 "file:freettl.gif" \
120,5 "file:freettl.png" \
10,30 "include:credit.txt"
credtext2.png: credtext.png
convert credtext.png -transparent '#00ffff' credtext2.png
credit.gif: helpbg.png credtext2.png
credit.png: helpbg.png credtext2.png
convert helpbg.png \
-draw 'image over 0,0 0,0 credtext2.png' \
credit.gif
credit.png
cp $@ ../
wikilrs_horiz.png:
python smtextgen $@ 49x7 \
0,0 killers
wikilrs.gif: wikilrs_horiz.png
wikilrs.png: wikilrs_horiz.png
convert wikilrs_horiz.png -rotate 270 $@
cp $@ ../
wivctms.gif:
wivctms.png:
python smtextgen $@ 54x7 \
0,0 victims
cp $@ ../
clean:
rm -f $(TEXTGEN_GRAPHICS) helpbg.png help.gif helptext.png \
rm -f $(TEXTGEN_GRAPHICS) helpbg.png help.png helptext.png \
helptext2.png graphics.stamp textgen.mk *.pyc credtext.png \
credtext2.png credit.gif dmwilv*.gif wikilrs.gif \
wivctms.gif wikilrs_horiz.png ../credit.gif ../help.gif \
../wikilrs.gif ../wivctms.gif
credtext2.png credit.png dmwilv*.png wikilrs.png \
wivctms.png wikilrs_horiz.png ../credit.png ../help.png \
../wikilrs.png ../wivctms.png
for graphic in $(TEXTGEN_GRAPHICS); do rm -f ../$$graphic; done
rm -fr __pycache__

View file

@ -9,7 +9,7 @@ CONVERT_COMMAND = 'convert'
IDENTIFY_COMMAND = 'identify'
# Output from 'identify' looks like this:
# fontchars/font033.gif GIF 9x16 9x16+0+0 8-bit sRGB 32c 194B 0.000u 0:00.000
# fontchars/font033.png GIF 9x16 9x16+0+0 8-bit sRGB 32c 194B 0.000u 0:00.000
IDENTIFY_OUTPUT_RE = re.compile(r'(\S+)\s(\S+)\s(\d+)x(\d+)(\+\d+\+\d+)?\s')
# Regexp to identify strings that are all lowercase (can use shorter height)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 290 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 585 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 568 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 421 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 527 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 528 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 538 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 325 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 561 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 551 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 546 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 275 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 311 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 421 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 541 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 560 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 578 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 547 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 588 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 562 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 546 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 563 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 535 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 608 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 589 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 551 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 562 B

Some files were not shown because too many files have changed in this diff Show more