Incorrect description of 16 bit PNG image files..

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
john3774
Posts: 28
Joined: 27 Aug 2010 16:54

Incorrect description of 16 bit PNG image files..

Post by john3774 »

I have a monochrome image file with 16 bit image depth. At least, Matlab and Windows Explorer say it is 16 bit.

The preview box of XYPlorer Ver. 16.30 says it is "16M ARGB (32-bit) ".
Running on Windows 7 Pro, SP1, 64 bit OS.

Any ideas as to why the discrepancy?

Best regards,
John

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Incorrect description of 16 bit PNG image files..

Post by admin »

Could you send me the pic?

john3774
Posts: 28
Joined: 27 Aug 2010 16:54

Re: Incorrect description of 16 bit PNG image files..

Post by john3774 »

Hi -
Sorry for the belated reply. I thought I would get a notice when someone replied, obviously that didn't happen. 3 files attached.

The effect is the same for both 8 bit and 16 bit images, I attached both.

Best regards,
John
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Incorrect description of 16 bit PNG image files..

Post by admin »

Confirmed on Win8.1 with XY 17.50.

That's really weird. The last time I tested this was under XP I think and the code worked 100% with all pixel formats (I have all sorts of PNG test files here). But now many of them (but not all) return "16M ARGB (32-bit)". Hard to see a pattern. Looks like a GDI bug. To fix this I would have to work out a programmatic way to calculate the pixel format natively. Interesting task but it will probably take a while and I can't start it right now.

Post Reply