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

I'm getting images to have a greenish background on all images for SVG images. Check below image for reference #3094

Closed
balsikandar opened this issue May 17, 2018 · 7 comments

Comments

@balsikandar
Copy link

balsikandar commented May 17, 2018

Glide Version: 3.8.0

Integration libraries: com.caverock:androidsvg:1.2.1

Device/Android Version: All versions

Issue details / Repro steps / Use case background: it's occurring with all icons

Glide load line / GlideModule (if any) / list Adapter code (if any):

Glide.with...

capture

#3064 this is how i implemented SVG with v3.8.0 glide version

@balsikandar
Copy link
Author

I further checked basically cls-1{fill:fff;} was used for carBody which for some reason looks greenish after rendering. So i changed it to cls-1{fill:none;} it looks fine now. So my problem is solved but greenish texture could be an issue for someone else

@sjudd
Copy link
Collaborator

sjudd commented May 17, 2018

I'd guess that it's RGB_565 bitmaps? If you use PREFER_ARGB_8888 does that fix the tint?

@sjudd sjudd added the v3 label May 17, 2018
@balsikandar
Copy link
Author

I'm not creating any bitmap glide is handling that internally. I guess AndroidSvg is doing parsing of SVG files there could be a problem so i'm attaching my SVG file that i'm try to use. I uploaded SVG as txt as SVG wasn't supported here.

bodytype_Hatchback.txt

@sjudd
Copy link
Collaborator

sjudd commented May 18, 2018

You can check to see if the SVG decoder you're using is using RGB_565 Bitmaps. SVG decoding isn't directly supported by Glide and isn't at all supported by Glide v3. Consider also asking on Stack Overflow.

@sjudd sjudd added the question label May 18, 2018
@balsikandar
Copy link
Author

yeah thanks

@balsikandar
Copy link
Author

It works fine cls-1{fill:ffffff;} if i use "ffffff" instead of "fff". Still i believe both are white. In any case my issue is resolved with that. Thanks for your help.

@BigBadaboom
Copy link

BigBadaboom commented Apr 25, 2019

Assuming that you are using AndroidSVG for the SVG rendering, make sure that you are using AndroidSVG version 1.3 or later. Version 1.2 had a bug with shorthand hex colours.

http://bigbadaboom.github.io/androidsvg/release-1.3.html

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