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

Green overlay on images with AVIF format #2419

Closed
iroyo opened this issue Aug 6, 2024 · 6 comments
Closed

Green overlay on images with AVIF format #2419

iroyo opened this issue Aug 6, 2024 · 6 comments

Comments

@iroyo
Copy link

iroyo commented Aug 6, 2024

Describe the bug
Green line (vertical or horizontal) in some images when using AVIF format (above 31). Example of "Accept" header used:
"image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*"

To Reproduce
Sample project here coiling-avif
Steps:

  • Open app in specificed device
  • Click the button LoadImages
  • Green overlay line appears

Example of cURL (we can output that into an image to see the visual artifact is NOT present)

curl 'https://shop.mango.com/assets/rcs/pics/static/T7/fotos/S/77004767_40_D7.jpg?ts=1722591772050&imdensity=1&imwidth=538' \
  -H 'accept: image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*' \
  -H 'accept-encoding: gzip' \
  -H 'connection: Keep-Alive' \
  -H 'host: shop.mango.com' \
  -H 'user-agent: okhttp/4.12.0' \

Logs/Screenshots
Captura de pantalla 2024-08-06 a las 15 14 51

Version

  • Coil version 2.7.0
  • Compose BOM version: "2024.03.00"

This has been observed only in some devices and in some images.
Example devices:

  • Pixel 7 👎 (green line)
  • Pixel 7 PRO 👎 (green line)
  • Pixel 8 PRO 🆗
  • OnePlus 7T PRO 👎 (green line)
@colinrtwhite
Copy link
Member

@iroyo Thanks for the repro project. Does this still occur if you update to Coil 3.0.0-alpha09? It updates to use the new ImageDecoder API. If it still occurs does it occur if you decode the image directly with ImageDecoder?

@iroyo
Copy link
Author

iroyo commented Aug 7, 2024

Hey Colin thanks for the fast response,

Sadly, after bumping up the coil version I still experience this visual artifact in the image when using AVIF
I have updated the repo linked above

Let me know if there anything that I could try, or something that I could investigate

@colinrtwhite
Copy link
Member

@iroyo if you decode the image directly with ImageDecoder (no Coil) does it also show the green line?

@iroyo
Copy link
Author

iroyo commented Aug 8, 2024

Captura de pantalla 2024-08-08 a las 15 01 37

Sadly, I think I've come to a dead end... ImageDecoder versions seem to have the same issue.. this implies its an Android problem right? ¿ Because I see no green line when I open the file in my computer

@colinrtwhite
Copy link
Member

Yep unfortunately this is likely an Android platform issue. Can you file an issue with the Android graphics team please? If they say there's a reasonable work-around to add to Coil we can do that.

@colinrtwhite
Copy link
Member

Closing as this is a platform issue with Android's decoders please file an issue with the graphics team.

@colinrtwhite colinrtwhite closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2024
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

2 participants