SDWebImage / SDWebImageSVGCoder

A SVG coder plugin for SDWebImage, using Apple's built-in framework
MIT License
103 stars 34 forks source link

Fix the issue that SVG bitmap generation does not works well when thumbnail pixel size set to zero, fix the logic to calculate the transform #25

Closed dreampiggy closed 4 years ago

dreampiggy commented 4 years ago

This fix #24

The problem related not only the code logic, but also the offset on Geometry. The previous code only works for some cases SVG which have a (0,0) view port. However, if the start point is not (0,0), the generated bitmap is wrong.

dreampiggy commented 4 years ago

Copy the code from https://github.com/SDWebImage/SDWebImagePDFCoder/blob/master/SDWebImagePDFCoder/Classes/SDImagePDFCoder.m#L188