GZDoom chokes on PNG images with non-8-bit-per-channel color

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: GZDoom chokes on PNG images with non-8-bit-per-channel color

Re: GZDoom chokes on PNG images with non-8-bit-per-channel c

by m8f » Thu Mar 04, 2021 10:59 am

Probably is fixed: viewtopic.php?f=2&t=71454#p1181474
https://github.com/coelckers/gzdoom/pull/1302

GZDoom chokes on PNG images with non-8-bit-per-channel color

by ZZYZX » Thu Mar 04, 2021 10:51 am

Example PK3 attached. Load into GZDoom, see "Invalid data encountered for texture Resources.pk3:textures/marb.png"
(Checked in GZDoom 4.5.0)

Reason: this texture is using 64-bit per pixel precision, which is perfectly valid within the format. This also opens in pretty much any image editor and WAD editor.
Easiest way to produce such image is to open up GIMP and set "Image -> Precision" to anything else than 8bit. Or, as it seems in this case, you could download an image from the net and have it broken already.

If the choice is to not fix it (I personally don't think it's reasonable to support) we at least need a better error message so that the modder knows what to fix.
Attachments
Resources.pk3
(57.38 KiB) Downloaded 26 times

Top