Skip to content
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

Progressive JPEG decoded in lower resolution #243

Open
sophie-h opened this issue Dec 22, 2024 · 5 comments
Open

Progressive JPEG decoded in lower resolution #243

sophie-h opened this issue Dec 22, 2024 · 5 comments

Comments

@sophie-h
Copy link

I got a report of an image that is rendered correctly everywhere else (TM), but not with image-rs. I guess it's a zune-jpeg issues?

https://gitlab.gnome.org/-/project/27706/uploads/6c2ce998dcd935b9a5707489dd786236/IMG_20240620_193631_036_1600x1200.jpg

It looks like not all progressive decoding levels are done. But that's just a wild guess.

@Shnatsel
Copy link
Contributor

This is what the zune-jpeg decoding result looks like - it basically becomes pixelated:
out

@eomanis
Copy link

eomanis commented Dec 22, 2024

Original reporter here.

I do not recall with certainty what application I used to downscale this photo to 1600x1200, but I think it was likely the Flatpak GIMP 3 Beta from the Flathub flathub-beta remote.

File modification and birth timestamps are 2024-06-26 18:53:50+00:00.

@eomanis
Copy link

eomanis commented Dec 22, 2024

Signed license declaration as "Creative Commons CC0 1.0 Universal" in case the image file should be used in a regression test:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I hereby declare the following work I made, identified by its file size and checksum(s) as stated in this document, to be licensed as "Creative Commons CC0 1.0 Universal".

File name             IMG_20240620_193631_036_1600x1200.jpg
File size in bytes    488183
File SHA384 checksum  1df8a0a79faa2389aab75bc7b332fa414a8e892c7b5150be5e1c87d7241093531d0499939b13fd57b43b6c216e4e68f3
Creation time         2024-06-26 20:53:49.711665112 +0200

2024-12-22 / December 22, 2024
eomanis
-----BEGIN PGP SIGNATURE-----

iQFDBAEBCAAtFiEEwebMu5TeekztIzacXzzBYu9GeOIFAmdoTaIPHGVvbWFuaXNA
d2ViLmRlAAoJEF88wWLvRnjilQ4IALzP1DxOsuLGCYWT5kjGPbuEr/DgXyoQp6gO
L2NnHDyP81qcDkGafN7LJdrHsnkd3OO325UvhMqmyiX3hx0dmnteZ5D+ceS7xF2K
5MRsaibkp1+zUkGJymeSKuMGuFg9s0xM44/V6Hf4QJGAESrJaJB4ISyoMCteiTBw
D2/b9SnmA2o043vl2ru6xy6YBT3u9KlkuH+x2XkF0gcNfK0NNF6InGy1O9/WF/ay
XfSWL9yyPug+xQfRn6XIpryFA7m5Kufh0mR5z2dL5br4u1J/WteBoFn2kXz5wE0r
Mub8COrxTdGndK0eR73tzPWEygo97q1iIRWevYhm0ZV3jrScBgQ=
=3wfE
-----END PGP SIGNATURE-----

@etemesi254
Copy link
Owner

Looking into it

We limit decoders progressive passes to prevent oom so might be the cause

@etemesi254
Copy link
Owner

It seems like its a decoder issue.

Investigating it

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

No branches or pull requests

4 participants