Skip to content

32-bit image 300dpi striped error #473

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

Closed
danschumann opened this issue Sep 26, 2014 · 4 comments
Closed

32-bit image 300dpi striped error #473

danschumann opened this issue Sep 26, 2014 · 4 comments

Comments

@danschumann
Copy link

Hello,

As you can see, for some strange reason, my image gets weird.

All I am doing is opening it and calling drawImage.

original
cr_undefined_logo_vtx-vip_white-green-31999-1un8khw-original

drawImage(..., 1000, 1000);
cr_199_cr_undefined_logo_vtx-vip_white-green-31999-1un8khw-original-17341-1biap4d-avatar

This should be GREEN.. all green! These are some of the green pixels where y=50

102 212 255 255
209 102 212 255
255 209 102 255
212 255 209 255
102 212 255 255
209 102 212 255
255 209 102 255
212 255 209 255
102 212 255 255
209 102 212 255
255 209 102 255
212 255 209 255
102 212 255 255
209 102 212 255
255 209 102 255
212 255 209 255
102 212 255 255
209 102 212 255
255 209 102 255
212 255 209 255
102 212 255 255
209 102 212 255
255 209 102 255
212 255 209 255
102 212 255 255
209 102 212 255
255 209 102 255
212 255 209 255
102 212 255 255
209 102 212 255
255 209 102 255
213 255 208 255
102 212 255 255
209 101 214 255
255 212 112 255
247 255 247 255
228 255 255 255

It seems like its analyzing pixels wrong, thus stretching it across the x axis
300dpi 32bit depth

@danschumann
Copy link
Author

you can also see a weird diagonal pattern

x1 = 212 g b a
x2 = r 212 b a
x3 = r g 212 a

it's weird, my guess is that it is taking too many pixels out because 32-bit has more bytes that it looks at

its probably expecting 24 bit, so each pixel gets shifted one, since all these pixels should equal

@danschumann
Copy link
Author

this seems to be because 32-bit is cmyk.. hence extra data

@pravdomil
Copy link
Contributor

#425

@zbjornson
Copy link
Collaborator

Thanks @pravdomil for finding the duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants