1

I’d like to render SVG assets which use the short hex format as fill color and just discovered the following issue with Glide (4.9.0): #3094 (comment)

Can I set Glide to accept the short hex colors or is there a workaround to avoid changing every SVG file to the six digits hex format?

Steffen
  • 2,197
  • 2
  • 24
  • 38

1 Answers1

1

You are probably using AndroidSVG for the SVG rendering. At least that's what the Glide example uses. Make sure you are using AndroidSVG 1.3 or later. There was a bug in v1.2 with three-digit colour parsing.

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

Paul LeBeau
  • 97,474
  • 9
  • 154
  • 181