[Nix-dev] ImageMagick and xwd
Roni Choudhury
aichoudh at gmail.com
Tue Dec 6 05:35:23 CET 2016
Hi Eike-
You have to let *convert* know the image type coming in on stdin:
*xwd -root | convert xwd:- screenshot.jpg*
You may also be interested to know about the *import* command, which comes
with ImageMagick:
*import -window root screenshot.png*
That command will take a screenshot and automatically convert to an output
format based on the file extension you choose.
Hope this helps,
roni
On Tue, Nov 29, 2016 at 6:25 AM Eike <eike at eknet.org> wrote:
>
> Hello,
>
> I'm used to do screenshots with xwd and imagemagick like this:
>
> xwd -root | convert - screenshot.jpg
>
> Currently (17.03pre95306.a24728f (Gorilla)) with imagemagick 6.9.6-2 I
> cannot convert xwd dumps to jpgs anymore:
>
> $ xwd -root | convert - screenshot.jpg
> convert: no decode delegate for this image format `' @
> error/constitute.c/ReadImage/504.
> convert: no images defined `screenshot.jpg' @
> error/convert.c/ConvertImageCommand/3257.
>
> I tested with the version of commit fa6c6dae7 (which is 6.9.5-10)
> successfully but with the update to 6.9.6-2 (commit 241cd0e5d) it
> stopped working. So it looks like it is not supported anymore with
> imagemagick 6.9.6?
>
> I could not find related info doing a quick search on the web. Does
> anyone know more about this?
>
> Thanks and regards
> Eike
>
> --
> gpg: AD7AC35E
> finger print: 137F BB0B 1639 D25F DC5D E59C B412 C5F5 AD7A C35E
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20161206/84054e87/attachment.html>
More information about the nix-dev
mailing list