|
From: | David Ponce |
Subject: | bug#64908: 29.1; svg parse failure |
Date: | Sat, 5 Aug 2023 10:30:38 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 |
On 04/08/2023 23:08, David Ponce wrote:
On 04/08/2023 21:08, Eli Zaretskii wrote:Date: Fri, 4 Aug 2023 19:32:13 +0100 From: Alan Third <alan@idiocy.org> Cc: David Ponce <da_vid@orange.fr>, 64908@debbugs.gnu.org On Fri, Aug 04, 2023 at 01:26:45PM +0300, Eli Zaretskii wrote:Thanks. I hope this will help an SVG expert to figure out what's going on with these images. Alan, do you have time to look into this, per chance?Yeah. I know roughly what needs to be done here thanks to David's most recent email, but I'll have a wee think about how best to do it since we already have, I think, three different methods of finding the image size depending on the version of librsvg. If I can merge a couple of those approaches it will probably be best.Thanks in advance.Eli, Alan, Until Alan finds the best solution, the attached simple patch fixed the issue for me with librsvg 2.56.3. Thanks & Regards
Hello, I attached a better patch, because it is possible to have svg image definition that combines viewBox, and percentage of width/height, like in this example: (insert-image '(image :type svg :data "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 22 22\" width=\"110%\" height=\"80%\"> <defs id=\"defs3051\"> <style type=\"text/css\" id=\"current-color-scheme\"> .ColorScheme-Text { color:#232629; } </style> </defs> <path style=\"fill:currentColor;fill-opacity:1;stroke:none\" d=\"m7.707031 3l-.707031.707031 6.125 6.125 1.167969 1.167969-1.167969 1.167969-6.125 6.125.707031.707031 6.125-6.125 1.875-1.875-1.875-1.875-6.125-6.125\" class=\"ColorScheme-Text\" /> </svg>" :scale 1)) I hope Alan will find a simpler implementation for all these cases! Thanks & Regards
image.c.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |