From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#59075: 29.0.50; Image transforms not applied to svg images Date: Sun, 06 Nov 2022 17:50:04 +0100 Message-ID: <877d0858oz.fsf@gmx.net> References: <83o7tk1h3m.fsf@gnu.org> <83leoo1cv9.fsf@gnu.org> <87o7tk5j8h.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16537"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 59075@debbugs.gnu.org, Eli Zaretskii To: Evgeny Zajcev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 06 17:51:22 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oriri-00048Q-BY for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Nov 2022 17:51:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orirX-00049I-CA; Sun, 06 Nov 2022 11:51:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orirP-00048Y-9R for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 11:51:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1orirN-0002hF-Tm for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 11:51:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1orirN-0001WD-Lv for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 11:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Nov 2022 16:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59075 X-GNU-PR-Package: emacs Original-Received: via spool by 59075-submit@debbugs.gnu.org id=B59075.16677534175786 (code B ref 59075); Sun, 06 Nov 2022 16:51:01 +0000 Original-Received: (at 59075) by debbugs.gnu.org; 6 Nov 2022 16:50:17 +0000 Original-Received: from localhost ([127.0.0.1]:60508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oriqe-0001VG-W7 for submit@debbugs.gnu.org; Sun, 06 Nov 2022 11:50:17 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:37827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oriqb-0001Uw-FH for 59075@debbugs.gnu.org; Sun, 06 Nov 2022 11:50:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1667753405; bh=XLv2nklrJfyHHil9QHCNpvwuZO2zXPhu8NbtlGEODP0=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=F+76aXL26TCRGWegwoUR82RUemLR12ZpNsimas7vR4kKtb7JatqM8NbsA139Rcra7 /IMKConfrm9eM1nJ0mmReIZ2wWr6UP/TZTzFVlMzCg0NfLq7hdQ4UelcAYGheHnO0Q 1+WqYWZIBMQN3ZqMbBnUJIi7BrV7G5k/s1lH+RlKP2chynosMvUx21iFBu5OqVRHVh +pJZOUQxoaihjht2CBrbyp+i960nVzMB+Tg495V4Y2Bj3qUSREBwZUe94qFkNV46gO ocxjXotUes29wrW16GS4lW4ao68ilfCCV8DIOMzg3EsydiXMbUIM2sWWLrSoxOrI/E B0AyygNxS0Z4A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfs ([89.246.38.100]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MQeA2-1ocot12QGU-00NhAS; Sun, 06 Nov 2022 17:50:05 +0100 In-Reply-To: (Evgeny Zajcev's message of "Sun, 6 Nov 2022 19:07:17 +0300") X-Provags-ID: V03:K1:C9CLKBjjaRwQOP7DVcL0A+dZlVkpNn7GGq2l7TiJp1859TnY+jq OKR3gkj+aJ4HuOmmALIZqVjepW3w45xSaMaESShwdC1VcLGNJp0jMPyelwHK+xQ6S4joFQD Ef7mrCQKil1MnzG/XcDNQosKSEenLRA0DLO7WHcijU5F3F93+4asr/HKsA+84DD8NduttAS v/uzTc/lxoB3K61BQLvdw== UI-OutboundReport: notjunk:1;M01:P0:tI5+wMT+lsc=;z2pjagiy4hXtuWiTecZmKG2bQvy /6jxvB5kCrL/7oa2QgPLFrrXwlONzvVMgNSn323DSMX+84dG7M8XMDQjB0DNfncU0zHGtBbj+ YHA9RoESvARPes4HRybSGwjUnKQJA/BUl6Tqxr5x2JxQ3+NPoTJrv/kUlXmCNU0PP5gs4FfVP 8id+wtPfXnvWKBh94jX2ghomRu375966RCX/Ll4WvaV7lbLCmEyAqIHsfmNAJtJs8XCJenziX kbrGRczoiKf042M9CzhZHr9yZdSuzQNwk28HOVBUd0aOhwDp/rl/30QvvJUnI7lj05IJ0HhD1 FfbdvqJuVeedOhMXuIO3yFwu4vohlNaNGkuTIuWGP8PJdnG6QrQZadMUlfug3pZqVKENdTKGy TYKWIAWHsWAayRYc/uFEi737/bMeniAPa8SwPL7AJJuMkbx6l3lF+H/Q5lcMzIXHInphGWJCG //5XClv/5DuO6fpWo9LCGCmRQzuj9v1NCaG7N9BCU8bOsjLin/1BWFVY/n/hbWrW7ZAZMMVUJ AZBNLoZfqdb7oEWMH6SN357Ky5TIPfhFLPjMa8nh1ppfvEF63tKdNNkFRk5xH+C6+3lBz9mAn UBuipdThWLsiVzKnDoRek1Pn3FwyxzYHVTRc1kwxyAmhezoGGLiJy2VwoBxoU7JUpAz2cgEBI agQHW3YorWgPgQpzoHrFC8LTnDhkYlG/vZ8drZHYla7b7dIADT5z8x4DZjP4DYBJCU8xQ00LI wY73kJAsYkNkbHI4R0h1T95kIRztSNfuurKKdy5IlgVBWSfvLK+qdJeui8rnPspBlhC50r9g X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247225 Archived-At: On Sun, 6 Nov 2022 19:07:17 +0300 Evgeny Zajcev wrote: > =D0=B2=D1=81, 6 =D0=BD=D0=BE=D1=8F=D0=B1. 2022 =D0=B3. =D0=B2 16:02, Step= hen Berman : > > On Sun, 06 Nov 2022 14:33:30 +0200 Eli Zaretskii wrote: > > >> From: Evgeny Zajcev > >> Date: Sun, 6 Nov 2022 14:52:17 +0300 > >> Cc: 59075@debbugs.gnu.org > >> > >> If this is caused by upgrading to a newer librsvg, why are you certa= in > >> that it's an Emacs bug and not a librsvg bug? > >> > >> Newer librsvg is known to have few bugs that we have already reported= to the > >> librsvg community. > >> However, in this particular case I'm not sure this is caused by librs= vg > >> side, why transforms starts to apply > >> after changing image type in the image spec? > > > > I don't know. I'm not sure it's a librsvg bug, I'm just saying it > > could be theirs as well as ours. We need a librsvg expert to tell. > > Anyone? > > I'm no librsvg expert, but I don't see the OP's problem on master > running under GNU/Linux with librsvg 2.54.5, GTK+ 3.24.34, cairo 1.17.6. > > Possibly svg image with defined viewBox should be used to trigger > this. Could you please try original image I've used - > http://lgarc.narod.ru/pics/github-octocat.svg > > Try also applying `:scale` transformer along with the `:height' as in my = example I downloaded the image and evaluated the following: (insert-image '(image :type svg :file "~/temp/github-octocat.svg" :ascent c= enter :height 16)) (insert-image '(image :type svg :file "~/temp/github-octocat.svg" :ascent c= enter :height 16 :scale 1)) (insert-image '(image :type svg :file "~/temp/github-octocat.svg" :ascent c= enter :height 16 :scale 2)) (insert-image '(image :type svg :file "~/temp/github-octocat.svg" :ascent c= enter :height 16 :scale 0.5)) (insert-image '(image :type svg :file "~/temp/github-octocat.svg" :ascent c= enter :scale 1)) (insert-image '(image :type svg :file "~/temp/github-octocat.svg" :ascent c= enter :scale 2)) (insert-image '(image :type svg :file "~/temp/github-octocat.svg" :ascent c= enter :scale 0.5)) and in each case the image was displayed correctly sized according to the image specs. Steve Berman