pearu/pylibtiff

Big tiff file writes failed

yasohasakii opened this issue · 1 comments

Writing a RGB image sizing of 41686*90356 with python3 api write_image(tiff_img, compression="lzw",write_rgb=True) ,then I got

PredictorEncodeTile: Out of memory

How to solve this?

Hi yasohasakii,

I met the same issue but resolved by TIFF.open("path_to_saved.tiff", "w8") first and write_tiles into file handler. Hope it works for anyone who met the same issue.