From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#46554: 27.1; 180 degree rotated image is displayed in slightly different position Date: Tue, 16 Feb 2021 21:15:42 +0000 Message-ID: References: <86pn10tkg5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2868"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46554@debbugs.gnu.org To: ynyaaa@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 16 22:16:16 2021 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 1lC7hf-0000bY-VW for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Feb 2021 22:16:16 +0100 Original-Received: from localhost ([::1]:34154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lC7hf-0006I8-17 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Feb 2021 16:16:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lC7hS-0006Gf-Mj for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2021 16:16:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58490) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lC7hS-0002jB-Ew for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2021 16:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lC7hS-0006i8-AL for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2021 16:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Feb 2021 21:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46554 X-GNU-PR-Package: emacs Original-Received: via spool by 46554-submit@debbugs.gnu.org id=B46554.161351015425779 (code B ref 46554); Tue, 16 Feb 2021 21:16:02 +0000 Original-Received: (at 46554) by debbugs.gnu.org; 16 Feb 2021 21:15:54 +0000 Original-Received: from localhost ([127.0.0.1]:41803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC7hK-0006hj-9N for submit@debbugs.gnu.org; Tue, 16 Feb 2021 16:15:54 -0500 Original-Received: from outbound.soverin.net ([116.202.65.218]:47065) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC7hI-0006hU-J9 for 46554@debbugs.gnu.org; Tue, 16 Feb 2021 16:15:53 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 343346013B for <46554@debbugs.gnu.org>; Tue, 16 Feb 2021 21:15:46 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1613510145; bh=k+yxh79vZM+JAdOGNpqzrJkuE/2v1hoxsrOzxgnbZ88=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Vo5GCY7WLwudwon4qol3HljdYeSh7EtHHnaJU8Nf747RKPrbMpzs9+q2jILjlekwX LX2jxzxS8nDivMPhSFwyEKKY7PUeY9z8SHIRD6vQS+6jdHl6N/MoVM82s9t+jwCnYR wsmbCGzv5WuhCIHfkPBoOaCDPeWtN3NHBQXCCpIK33y+BW6uJVNlxbmM7kp5P8bV1w 5tWKyrC8klzo4hltU+jIJhGv+v/U1/RDNHVz9GWIqAj+iDReh7m2CLhE53bTMld52q FP06CWOQ4FhRCIP3ZdqVZuDOqmblowbiWCGtk3E5jvUjS7j4K5sWccf6aqnJghpkwG sCqgxFGV1Gsqw== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id DB08D202A7BEAE; Tue, 16 Feb 2021 21:15:42 +0000 (GMT) Mail-Followup-To: Alan Third , ynyaaa@gmail.com, 46554@debbugs.gnu.org Content-Disposition: inline In-Reply-To: <86pn10tkg5.fsf@gmail.com> 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200159 Archived-At: On Tue, Feb 16, 2021 at 06:45:30PM +0900, ynyaaa@gmail.com wrote: > > THe form below displays same image with different :rotation. > The third image is rotated by 180 degree and is displayed in slightly > different position. There is one pixel gap on the top and left edges of > the image. > > (let ((buf (generate-new-buffer "tmp")) > (svg " version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"> > stroke-width=\"1\" stroke=\"red\"/> > ")) > (switch-to-buffer buf) > (insert " ") > (insert-image (create-image svg 'svg t :scale 1)) > (insert " ") > (insert-image (create-image svg 'svg t :scale 1 :rotation 90)) > (insert " ") > (insert-image (create-image svg 'svg t :scale 1 :rotation 180)) > (insert " ") > (insert-image (create-image svg 'svg t :scale 1 :rotation 270)) > (insert " ") > (put-text-property (point-min) (point-max) 'face '(:background "grey")) > ) Does this only happen with SVG files, or do you see the same thing with other image types? (Windows and NS use the same rotation logic, so I'd be surprised if some rounding error manifested on one but not the other, although perhaps there's some difference in compilers... Seems unlikely.) -- Alan Third