GNU bug report logs - #38109
27.0.50; xpm image scaling doesn't work

Previous Next

Package: emacs;

Reported by: Adam Sjøgren <asjo <at> koldfront.dk>

Date: Thu, 7 Nov 2019 21:12:02 UTC

Severity: normal

Found in version 27.0.50

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Adam Sjøgren <asjo <at> koldfront.dk>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: alan <at> idiocy.org, 38109 <at> debbugs.gnu.org, larsi <at> gnus.org
Subject: bug#38109: Updated Emacs to HEAD, consistently not scaling now
Date: Sat, 09 Nov 2019 11:28:42 +0100
[Message part 1 (text/plain, inline)]
Eli writes:

>> However the png-image is still not scaled, and still shown in the larger
>> canvas.

> What do you mean by "shown in the larger canvas"?

I mean that the original 16x16 pixel image is shown in the corner of a
320x320 pixel white box.

As can be seen in the screenshot here:

 · https://debbugs.gnu.org/cgi/bugreport.cgi?att=1;filename=emacs27-image-scaling.png;bug=38109;msg=5

> Can you post a screenshot of how you see those PNG images with and
> without scaling, after applying that patch?

The patch doesn't make any difference on the scaling of the PNG images.

--with-cairo does.

Here is a screenshot of the attached .png with and without scaling,
without the patch and without Cairo (i.e. with Xrender):

[without-patch.png (image/png, inline)]
[Message part 3 (text/plain, inline)]
Here is a screenshot of the attached .png with and without scaling, with
the patch and without Cairo:

[with-patch.png (image/png, attachment)]
[Message part 5 (text/plain, inline)]
Here is what happens when I also apply Alan's patch for
image_set_transform():

[with-two-patches.png (image/png, inline)]
[Message part 7 (text/plain, inline)]
And finally what I see with no patches and --with-cairo (this is the
expected result):

[with-cairo.png (image/png, inline)]
[Message part 9 (text/plain, inline)]
Here is the image I'm using for testing:

  medium-wry.png: PNG image data, 16 x 16, 4-bit colormap, non-interlaced:

[medium-wry.png (image/png, inline)]

This bug report was last modified 5 years and 176 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.