RealFaviconGenerator/realfavicongenerator

Input image left-shifted in favicon editor previews

Closed this issue · 1 comments

When passing this SVG:

sample-favicon

It is not displayed properly in the editor:

image

The image:

<?xml version="1.0" encoding="UTF-8"?>
<svg width="121px" height="121px" viewBox="0 0 121 121" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <title>Artboard</title>
    <g id="Artboard" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <path d="M27.8544441,77.3763336 C10.6358953,45.7688995 43.335921,11.5712658 76.4105174,24.5712669 C104.18962,35.5807815 110.063357,73.052334 86.4326258,91.4917541 C75.9113146,99.7620428 61.7153169,101.687634 49.3594867,96.5204747 C65.1921237,100.720798 83.3260297,93.4005677 90.871289,78.9141187 C107.982149,46.6859701 70.9722184,13.6924291 40.7513829,34.2786812 C27.1197352,44.049337 21.8210328,61.7592059 27.8567851,77.3763336 L27.8544441,77.3763336 Z" id="Path_29" fill="#B42129" fill-rule="nonzero"></path>
        <path d="M103.456866,100.856142 C96.6220643,107.032365 88.3801521,111.455197 79.4445404,113.741801 C71.9402173,115.682315 64.1111943,116.033671 56.4622844,114.773214 C69.5219371,114.938603 82.1209559,109.967741 91.5291289,100.937815 C76.2325881,111.51311 56.4770819,113.270701 39.5433922,105.562838 C13.2157513,93.4285699 2.8190722,60.0966695 18.0664424,35.5971161 C33.1710075,10.3718401 66.9034438,4.18569698 91.1217832,20.5319559 C75.2516892,5.35245351 51.4055794,3.33863175 32.595105,12.7076866 C42.1399645,6.05296211 53.4881774,2.4462723 65.1359381,2.36555681 L65.1359381,1.56749535 C45.7355148,-1.45207053 25.1434883,7.77230653 13.2344799,23.588858 C7.01503947,31.8210952 2.98811472,41.489049 1.52914421,51.6913556 C1.00510002,55.5315412 0.864728336,59.4140908 1.11009319,63.2819149 C1.12520418,64.5760448 1.23316879,65.8674396 1.43316046,67.1462125 C2.03064836,72.3060434 3.26596046,77.3724288 5.11097692,82.2300408 C8.49286025,90.6793673 13.6383504,98.315427 20.2061778,104.631766 C23.0721614,107.240896 26.1450664,109.614811 29.3948662,111.730313 C53.0396442,126.823475 86.093171,123.542556 103.99297,101.437187 L103.456866,100.856142 Z" id="Path_30" fill="#B42129" fill-rule="nonzero"></path>
        <ellipse id="Ellipse_1" fill="#223870" fill-rule="nonzero" cx="62.1393722" cy="61.8421373" rx="20.0816738" ry="20.0168749"></ellipse>
    </g>
</svg>

Reported here: https://discord.com/channels/1247472869043208192/1247472869647323168/1293761654277931019

This happened for image which bbox is smaller than the actual image size. Fixed in @realfavicongenerator/generate-favicon v0.4.2.