[Image-SIG] JPEG 2000?

2009-06-23 Thread Bill Janssen
My bottleneck right now is JPEG 2000. I'm getting lots of LOC images in this format, and need to manipulate them with PIL. Bill ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig

Re: [Image-SIG] Workarounds for MemoryErrors

2009-06-23 Thread B. Bogart
Thanks Kevin, I have tried the code, the Image.new() function just bails due to MemoryError. I've now enabled some extra swap, giving me about 20GB of free swap+mem. Still python bails on Image.new(). Looking at memory usage it seems python does not even try to allocate, just bails before any me

[Image-SIG] Workarounds for MemoryErrors

2009-06-23 Thread Stani
As an emergency solution I think VIPS has support for large images. It has python bindings, but they are not so nice and well documented as PIL. On Mon, Jun 22, 2009 at 6:52 PM, B. Bogart wrote: > Hello all, > > I want to create a very large RGBA image (96000x72000 pixels). > > I have 4GB of RAM.

Re: [Image-SIG] Workarounds for MemoryErrors

2009-06-23 Thread Gregor Kopka
Hello, to process a ~ 25GB (uncompressed image data) you are afaik out of luck with PIL. Only chance would be to use a fairly recent 64 bit OS with 64 bit python binaries (some custom patches /might/ be needed though) and give it a hefty amount of swapspace (at least eight times main memory) t

Re: [Image-SIG] Skewing when converting with ImageQt

2009-06-23 Thread Carl Petterson
> -Original Message- > From: fredrik.lu...@gmail.com [mailto:fredrik.lu...@gmail.com] On > Behalf Of Fredrik Lundh > Sent: den 22 juni 2009 16:33 > > Looks like PIL doesn't do line alignment correctly for mode L and P > images (at least). Hmm. > > Can you check if it works correctly if t

Re: [Image-SIG] Workarounds for MemoryErrors

2009-06-23 Thread Laura & Edward Cannon
Off the top of my head I would divide the image into horizontal bands and only work on one part at a time, writing the rest to disk. At the final join I would write a custom file writter that wrote to some very simple file format such as .tga or .bmp and could handle just appending the new pixel da