-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad display of png16 #207
Comments
@adammaj1 If this is still an issue, can you provide an example source image? |
@Danack Is this png file not the source image ? |
Yeah, that's what I see on github also. If the image is showing as 4 repetitions of the gradient in both ImageMagick and on Github, then it's probably either a problem with libpng or the image generation code. What do you expect the ImageMagick developers to do? btw did you produce that image yourself, from the code in the StackOverflow question? |
I'm pretty sure the color calculation is just wrong.... Plugging in two example numbers, done by hand so there may be mistakes.
There should be scaling over the whole 16 bit range (which is (2^16) - 1, aka 65535) and also dividing by how many pixels there are in the image. It should be more like:
So I really doubt this is a bug in ImageMagick. |
I have tried also create png16 in IM 6 using
but it is now good command |
ImageMagick version
6.9.11-60 Q16 x86_64 2021-01-25
Operating system
Linux
Operating system, version and so on
Ubuntu 22.04.1 LTS
Description
First thanks for IM
There is no HDRI here so maybe HDRI is not properly configured.
Steps to Reproduce
I have 16 bit gray color file with simple horizontal gradient. It's dimension in pixels is1000x1000. It is created with libpng library
I can open it with IM viewer ( it has color depth q16hdri) and check
I see 4 reptition of gradients in the image but IMHO it should be linear gradient, monotone, from 0 to 999)
I think that it is a bug : bad display of 16 bit color file
What do you think about it ?
Images
The text was updated successfully, but these errors were encountered: