emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imagemagic in image-mode and image-dired-thumbnail-mode?


From: Vitalie Spinu
Subject: Re: imagemagic in image-mode and image-dired-thumbnail-mode?
Date: Mon, 22 Jul 2013 22:17:44 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

 >> Lars Magne Ingebrigtsen <address@hidden>
 >> on Thu, 18 Jul 2013 10:47:15 +0200 wrote:

 > Vitalie Spinu <address@hidden> writes:
 >> For `imagemagick', `image-transform' will try to use internal
 >> Emacs ImageMagick support. For `convert' use external ImageMagick
 >> \"convert\" utility to produce a transformed temporary image
 >> file.

 > If you want to avoid temporary file management, you can "convert" with
 > output to a buffer, and then just call `create-image' on the buffer
 > contents.

 > It'll be slower, but I haven't measured how much slower. 

Redirecting output to a buffer is very fast, as fast as using temp
files. For a 3.5MB image various transforms give no difference in speed.

But I wonder what is the correct way of doing it.

   (call-process "convert"
                  nil (list (get-buffer-create "tttt")) nil
                  "temp.jpg" "-size 500x1000" "-")

also puts silly warnings into the same buffer:

Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading 
configurations from ~/.fonts.conf is deprecated.
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading 
configurations from ~/.fonts.conf is deprecated.
 
How do I get rid of those?

    Vitalie



reply via email to

[Prev in Thread] Current Thread [Next in Thread]