From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Scale transformation of images Date: Sun, 16 Jun 2019 09:16:36 +0300 Message-ID: <8475F4F0-00E8-44A9-BD60-6D3894E86EB0@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="23934"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: K-9 Mail for Android To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 16 08:20:09 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcOWP-0005uO-31 for ged-emacs-devel@m.gmane.org; Sun, 16 Jun 2019 08:20:09 +0200 Original-Received: from localhost ([::1]:37738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcOWF-0003BA-4b for ged-emacs-devel@m.gmane.org; Sun, 16 Jun 2019 02:19:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38417) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcOVk-00034c-9f for emacs-devel@gnu.org; Sun, 16 Jun 2019 02:19:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hcOT3-0000Ss-Dc for emacs-devel@gnu.org; Sun, 16 Jun 2019 02:16:41 -0400 Original-Received: from [176.12.186.179] (port=50669 helo=[10.165.107.76]) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1hcOT2-0002O2-QG for emacs-devel@gnu.org; Sun, 16 Jun 2019 02:16:41 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237714 Archived-At: If I insert an image into a buffer with insert-image, and then position poi= nt on the image and press '-' to make it smaller, the scale factors I see i= n the transform matrix are greater than 1=2E This is because image_set_siz= e does this: double xscale =3D img->width / (double) width; and similarly for yscale=2E Shouldn't we divide width by img->width inste= ad?