unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Testing native image scaling
@ 2019-01-19  9:31 Eli Zaretskii
  2019-01-19 21:45 ` Alan Third
  0 siblings, 1 reply; 18+ messages in thread
From: Eli Zaretskii @ 2019-01-19  9:31 UTC (permalink / raw)
  To: Alan Third; +Cc: emacs-devel

Alan, could you please tell how you tested native image scaling with
the XRENDER extension, and perhaps show some Lisp or existing commands
you used for that?  E.g., did the features in thumbs.el work for you
in a build without Imagemagick?

I tried to implement this for MS-Windows, but I guess my understanding
of the internal workings of this is incomplete/incorrect, or my code
is buggy (or both), because I don't seem to be able to cause Emacs to
exercise the code when the original image's size and the size
requested by scaling differ.  For example, I thought that when scaling
is requested, x_set_image_size should be called and compute image
dimensions different from the original img->height and img->width, but
I seem to be unable to see this.  What am I missing?  Could you
perhaps describe the flow of calls when, e.g., the user types '+' on
an image in image-mode, and Emacs scales the image at point?

Thanks.

P.S. Incidentally, image-scaling-p is called in image.el also in
context where we want to know whether an image can be rotated by 90
degrees, and native scaling doesn't support that, does it?



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2019-03-28 20:09 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-19  9:31 Testing native image scaling Eli Zaretskii
2019-01-19 21:45 ` Alan Third
2019-01-20 16:05   ` Eli Zaretskii
2019-01-20 19:26     ` Alan Third
2019-01-20 19:41       ` Eli Zaretskii
2019-01-20 20:19         ` Alan Third
2019-03-27  2:35     ` YAMAMOTO Mitsuharu
2019-03-27 17:09       ` Eli Zaretskii
2019-03-27 18:35         ` Andy Moreton
2019-03-27 18:42           ` Eli Zaretskii
2019-03-27 19:06             ` Andy Moreton
2019-03-27 19:34               ` Andy Moreton
2019-03-28  2:26           ` YAMAMOTO Mitsuharu
2019-03-28 16:02             ` Eli Zaretskii
2019-03-28 18:06               ` Andy Moreton
2019-03-28 18:19                 ` Eli Zaretskii
2019-03-28 19:29                   ` Andy Moreton
2019-03-28 20:09                     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).