all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* imagemagick support
@ 2012-05-15 14:55 Dirk-Jan C. Binnema
  2012-05-15 17:13 ` Peter Dyballa
  2012-10-23  9:17 ` Peter Dyballa
  0 siblings, 2 replies; 3+ messages in thread
From: Dirk-Jan C. Binnema @ 2012-05-15 14:55 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,

I'm experimenting a bit with the new imagemagick support in emacs 24. I
wonder if I am misunderstanding something.

After compiling the latest emacs-24 with imagemagick support, I do:

  (imagemagick-register-types)

After, (imagemagick-types) gives me a long list of types, including PNG,
JPEG etc. However, when I then try:

  (create-image "mypng.png")
  => (image :type png :file "mypng.png")

Still, if I explicitly do   
    (create-image "mypng.png" 'imagemagick)
  =>  (image :type imagemagick :file "mypng.png")
  
So, why isn't imagemagick used automatically?

Second question, when I load an image, I want it to be at most, say, 800
pixels. Using imagemagick, I can do:
      (create-image "mypng.png" 'imagemagick nil :width 800)
but that will also scale-up smaller images, which is not what I want.

Is there a way to only scale-*down* images, but leave smaller ones as
they are? I can call one of the imagemagick command line tools, but that
seems somewhat suboptimal.
 
      
Thanks,
Dirk.

-- 
Dirk-Jan C. Binnema                  Helsinki, Finland
e:djcb@djcbsoftware.nl           w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C



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

end of thread, other threads:[~2012-10-23  9:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-15 14:55 imagemagick support Dirk-Jan C. Binnema
2012-05-15 17:13 ` Peter Dyballa
2012-10-23  9:17 ` Peter Dyballa

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.