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: Lars Magne Ingebrigtsen
Subject: Re: imagemagic in image-mode and image-dired-thumbnail-mode?
Date: Mon, 22 Jul 2013 22:31:15 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Vitalie Spinu <address@hidden> writes:

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

Presumably (or hopefully :-) those are from STDERR, so you need to
redirect that:

(call-process PROGRAM &optional INFILE DESTINATION DISPLAY &rest ARGS)

[...]

DESTINATION can also have the form (REAL-BUFFER STDERR-FILE); in that case,
REAL-BUFFER says what to do with standard output, as above,
while STDERR-FILE says what to do with standard error in the child.
STDERR-FILE may be nil (discard standard error output),
t (mix it with ordinary output), or a file name string.

So that should be

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

Note the extra nil in DESTINATION.                

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



reply via email to

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