简体   繁体   中英

SVG issue with Glide using Shorthand Hexadecimal Colors

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM