Re: [Image-SIG] less disk IO

2008-01-03 Thread Fredrik Lundh
Carl Karsten wrote: I saw some mention of that in the IM docs. any idea why .tostring doesn't work? the tostring method returns pixel data as a packed array, not data in an image interchange file format. (tostring/fromstring is a common data interchange protocol for array- style objects in

Re: [Image-SIG] less disk IO

2008-01-03 Thread Carl Karsten
Fredrik Lundh wrote: Carl Karsten wrote: I saw some mention of that in the IM docs. any idea why .tostring doesn't work? the tostring method returns pixel data as a packed array, not data in an image interchange file format. (tostring/fromstring is a common data interchange protocol

Re: [Image-SIG] less disk IO

2008-01-02 Thread Douglas Bagnall
Carl Karsten wrote: I am trying to convert a pdf (data in string, not disk file) to a png. This will be run in a django view on a server (PyCon's even) so it would be good if it didn't hit the disk as much. Shouldn't I be able to use .tostring if I can use .save? use cStringIO.

Re: [Image-SIG] less disk IO

2008-01-02 Thread Carl Karsten
Douglas Bagnall wrote: Carl Karsten wrote: I am trying to convert a pdf (data in string, not disk file) to a png. This will be run in a django view on a server (PyCon's even) so it would be good if it didn't hit the disk as much. Shouldn't I be able to use .tostring if I can use