swhitty / SwiftDraw

Swift library and command line tool to convert SVGs into SFSymbol, PNG, PDF and Swift source code.
zlib License
389 stars 49 forks source link

Svg image seems to be blurry and doesn't parse some part properly when imageView frame is small #12

Closed Dmitry-Pliushchai closed 2 years ago

Dmitry-Pliushchai commented 2 years ago

It seems that svg image is blurry & doesn't parse some part properly (take a look at "BET" in the beginning) if the image size is less than imageView size. It did not look ideally in previous versions but in 0.13.0 it looks really bad.

I tested on iPhone 11 IOS 15.6

IMG_1117

I also attached sample project and .svg image. SVG.zip logo

swhitty commented 2 years ago

Thank you for the sample project.

0.13.0 introduced a regression where images rasterized to UIImage would be scaled twice.

This has been fixed on the main branch and will be included in the next release.

Dmitry-Pliushchai commented 2 years ago

Thank you so much!

swhitty commented 2 years ago

0.13.1 is now available