You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the cropping logic produces slightly off-center icons on very low resolutions. This is especially noticeable on the un-even sizes in iOS notification icons (29px, etc.).
The issue is due to the fact that the icon is first rendered as a low-resolution PNG, from which a certain center section of whole pixels is extracted. Since the cropping needs to be performed on whole pixels, this causes a small "shift" when the input and output resolutions do not match.
Some possible solutions:
Render the SVG at a higher resolution, crop and downscale
Modify the SVG viewBox attribute to produce the desired crop directly during SVG rendering
The text was updated successfully, but these errors were encountered:
Currently the cropping logic produces slightly off-center icons on very low resolutions. This is especially noticeable on the un-even sizes in iOS notification icons (29px, etc.).
The issue is due to the fact that the icon is first rendered as a low-resolution PNG, from which a certain center section of whole pixels is extracted. Since the cropping needs to be performed on whole pixels, this causes a small "shift" when the input and output resolutions do not match.
Some possible solutions:
viewBox
attribute to produce the desired crop directly during SVG renderingThe text was updated successfully, but these errors were encountered: