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

Can't properly load grayscale JPEG #57

MyLegGuy opened this Issue Nov 18, 2017 · 0 comments


None yet
1 participant

MyLegGuy commented Nov 18, 2017

JPEG images that are grayscale display at a fraction of their correct width for some reason. Around 1/3 their correct width, I think. I don't know much about the JPEG format, but 1/3 of the correct width makes me think that one byte per pixel is being used instead of 3, which is possible because the only colors are shades of black.

Here's what it looks like when I display the grayscale JPEG:
Here's that same image displayed, but it's a regular JPEG:
Code I used:
The actual image:

@MyLegGuy MyLegGuy changed the title from Can't properly display JPEG with bit depth of 8 to Can't properly load grayscale JPEG Sep 10, 2018

@xerpi xerpi closed this in #63 Sep 18, 2018

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