[Nix-dev] ImageMagick and xwd

Eike eike at eknet.org
Tue Dec 6 09:53:05 CET 2016


Hi Roni,

thank you so much! This works perfectly. I didn't know about the import
command, this is very convenient. 

Thanks again and kind regards
Eike

Roni Choudhury <aichoudh at gmail.com> writes:

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


-- 
gpg: AD7AC35E
finger print: 137F BB0B 1639 D25F DC5D E59C B412 C5F5 AD7A C35E


More information about the nix-dev mailing list