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

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

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 Reply
User avatar
ZZYZX
 
 
Posts: 1384
Joined: Sun Oct 14, 2012 1:43 am
Location: Ukraine
Contact:

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

Post by ZZYZX »

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
User avatar
m8f
 
 
Posts: 1456
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Location: Siberia (UTC+7)
Contact:

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

Post by m8f »

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

Return to “Closed Bugs [GZDoom]”