[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/
- Re: imagemagic in image-mode and image-dired-thumbnail-mode?, (continued)
- Re: imagemagic in image-mode and image-dired-thumbnail-mode?, Vitalie Spinu, 2013/07/15
- Re: imagemagic in image-mode and image-dired-thumbnail-mode?, Glenn Morris, 2013/07/16
- Re: imagemagic in image-mode and image-dired-thumbnail-mode?, Stefan Monnier, 2013/07/16
- Re: imagemagic in image-mode and image-dired-thumbnail-mode?, Vitalie Spinu, 2013/07/17
- Re: imagemagic in image-mode and image-dired-thumbnail-mode?, Vitalie Spinu, 2013/07/17
- Re: imagemagic in image-mode and image-dired-thumbnail-mode?, Lars Magne Ingebrigtsen, 2013/07/18
- Re: imagemagic in image-mode and image-dired-thumbnail-mode?, Vitalie Spinu, 2013/07/18
- Re: imagemagic in image-mode and image-dired-thumbnail-mode?, Stefan Monnier, 2013/07/19
- Re: imagemagic in image-mode and image-dired-thumbnail-mode?, Vitalie Spinu, 2013/07/20
- Re: imagemagic in image-mode and image-dired-thumbnail-mode?, Vitalie Spinu, 2013/07/22
- Re: imagemagic in image-mode and image-dired-thumbnail-mode?,
Lars Magne Ingebrigtsen <=
- Re: imagemagic in image-mode and image-dired-thumbnail-mode?, Vitalie Spinu, 2013/07/23
- image-transform.el and image-mode.el rewrite, Vitalie Spinu, 2013/07/18
- Re: image-transform.el and image-mode.el rewrite, Wolfgang Jenkner, 2013/07/19
- Re: image-transform.el and image-mode.el rewrite, Wolfgang Jenkner, 2013/07/19
- Re: image-transform.el and image-mode.el rewrite, Vitalie Spinu, 2013/07/20
- Re: image-transform.el and image-mode.el rewrite, Glenn Morris, 2013/07/22
- Re: image-transform.el and image-mode.el rewrite, Vitalie Spinu, 2013/07/22