Skip to main content
November 29, 2010
Question

Zip compression predictor in 32 bit mode

  • November 29, 2010
  • 1 reply
  • 1165 views

Hello

I'm writing plugin to import psd files and I have problem with layers in 32-bit mode. Layers are compressed in zip with prediction.

I can decompress without any problems but I don't have any idea about predictor... I tried adopt predictor used in 16-bit mode (previous pixel difference) and extend it to 4 bytes, but not to avail. I also tried some other methods like previous byte diference (exactly like in EXR format) with integer math- no succes. I get only color noise.

So I have question: what is prediction algorithm in 32-bit mode? Is it previos pixel difference? Is it integer or float math??

Any advise would be very helpful for me. I hope this is not military secret...

Thanks

This topic has been closed for replies.

1 reply

Chris Cox
Legend
November 30, 2010

It's the same as the predictor from TIFF Technote #3.

November 30, 2010

Thanks a lot! I forgot about 32-bit float TIFF.... !

Thanks again