unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Scale transformation of images
@ 2019-06-16  6:16 Eli Zaretskii
  2019-06-16  6:45 ` mituharu
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2019-06-16  6:16 UTC (permalink / raw)
  To: emacs-devel

If I insert an image into a buffer with insert-image, and then position point on the image and press '-' to make it smaller, the scale factors I see in the transform matrix are greater than 1.  This is because image_set_size does this:

   double xscale = img->width / (double) width;

and similarly for yscale.  Shouldn't we divide width by img->width instead?



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

end of thread, other threads:[~2019-06-16  8:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-16  6:16 Scale transformation of images Eli Zaretskii
2019-06-16  6:45 ` mituharu
2019-06-16  7:54   ` Eli Zaretskii
2019-06-16  8:10     ` mituharu

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).