librelist archives

« back to archive

no encode delegate for this image format

no encode delegate for this image format

From:
Timur Tabi
Date:
2013-11-28 @ 15:23
I'm trying to use wand.display to display an image I'm creating, but I 
get this error instead:

   File "./make_mini.py", line 90, in <module>
     display(image)
   File "build/bdist.macosx-10.6-universal/egg/wand/display.py", line 
61, in display
   File "build/bdist.macosx-10.6-universal/egg/wand/image.py", line 
2180, in save
   File "build/bdist.macosx-10.6-universal/egg/wand/resource.py", line 
218, in raise_exception
wand.exceptions.MissingDelegateError: no encode delegate for this image 
format `/var/folders/18/18ur4f+iG0aTJKZXFtgPkE+++TI/-Tmp-/tmp2fPfUV.' @ 
error/constitute.c/WriteImage/1217

If I save the image, it can be viewed just fine.  The full code is here:

http://pastebin.com/4a6Buw2n

Re: [wand] no encode delegate for this image format

From:
Hong Minhee
Date:
2013-11-28 @ 15:27
Hi Timur,

I seems MissingDelegateError was raised because image.format was not 
determined.  Try set the format before display(image) e.g.:

  image.format = 'png'
  display(image)


Thanks,
Minhee

On Nov 29, 2013, at 12:23 AM, Timur Tabi <timur@tabi.org> wrote:

> I'm trying to use wand.display to display an image I'm creating, but I 
> get this error instead:
> 
>   File "./make_mini.py", line 90, in <module>
>     display(image)
>   File "build/bdist.macosx-10.6-universal/egg/wand/display.py", line 
> 61, in display
>   File "build/bdist.macosx-10.6-universal/egg/wand/image.py", line 
> 2180, in save
>   File "build/bdist.macosx-10.6-universal/egg/wand/resource.py", line 
> 218, in raise_exception
> wand.exceptions.MissingDelegateError: no encode delegate for this image 
> format `/var/folders/18/18ur4f+iG0aTJKZXFtgPkE+++TI/-Tmp-/tmp2fPfUV.' @ 
> error/constitute.c/WriteImage/1217
> 
> If I save the image, it can be viewed just fine.  The full code is here:
> 
> http://pastebin.com/4a6Buw2n

Re: [wand] no encode delegate for this image format

From:
Timur Tabi
Date:
2013-11-28 @ 15:29
Hong Minhee wrote:
>    image.format = 'png'
>    display(image)

That worked, thanks!  I thought I had set that already, but I was confused.