I think i've more or less a working image command:
I was able to  read, resize and render correctly both png and jpeg
files. I use PIL for image manipulation and then the array module for
passing a buffer to ImageSurface.create_for_data constructor of pycairo
(you can't simply use a string, as create_for_data needs a writable
buffer).
At the end it worked (there were two swapped color channels, i really
don't know what exactly was happening, but with trial and error i found
out a way).
i've got an example screenshot here:

http://www.hv-a.com/shoebot_image_command.jpg

There you can see both png and jpeg images loaded and displayed, with
different resizing.
As you can see there's still a problem with alpha channel
(pre-multiplied alpha issue? i guess so), but i think is working not too
bad.
Now it's a matter of integrating the command in grob pipeline, so that
transformations can be applied, but i don't know how ...

cheers to all
f.



-- 
architetto Francesco Fantoni
<HVA - Hermanitos Verdes Architetti>
l.go san giacomo, 38
I-41100 modena (italia)
tel.& fax. +39.059.217554
skype:  hva_studio
e.mail: [EMAIL PROTECTED]
web:    http://www.hv-a.com

_______________________________________________
Shoebot-devel mailing list
[email protected]
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
  • [s... architetto francesco fantoni <hva - hermanitos verdes architetti>
    • ... Dave Crossland
      • ... francesco fantoni
        • ... Dave Crossland
    • ... francesco fantoni
      • ... Dave Crossland
      • ... architetto francesco fantoni <hva - hermanitos verdes architetti>

Reply via email to