EtheaDev / SVGIconImageList

Three engines to render SVG (Delphi Image32, Skia4Delphi, Direct2D wrapper) and four components to simplify use of SVG images (resize, fixedcolor, grayscale...)
Apache License 2.0
321 stars 93 forks source link

base64 encoded svg didn't display in ver 3.0.0 #199

Closed frankwu-delphi closed 2 years ago

frankwu-delphi commented 3 years ago

base64 encoded svg didn't display in SVGIconImageList ver 3.0.0, but same svg correctly display in SVGIconImageList ver 2.2.0.

base64 encoded svg sample: edge svg with base64 .zip

carloBarazzetta commented 3 years ago

Check for the changed default of the engine used in 2.2.0 (TSVG) and in 3.0.0 (Image32). Here you can read some details. Probably base64 encoding is not yet supported in Image32, you can "switch" to TSVG engine, at the moment...

carloBarazzetta commented 3 years ago

I noticed that the svg image contained in edge svg base64.zip is a png embedded in an SVG - it is a bad idea to use this type of file because the "resize function" of an SVG image is completely lost. image

frankwu-delphi commented 3 years ago

@carloBarazzetta thank you for quick reply.

pyscripter commented 3 years ago

Please keep open so that Image32 fixes this. I agree with @carloBarazzetta that it is not a good idea, but since it is part of the svg standard it is worth supporting it. @AngusJohnson

AngusJohnson commented 3 years ago

Noted thanks but it's low priority for the reason stated by Carlo.