MMLayershots icon indicating copy to clipboard operation
MMLayershots copied to clipboard

Layershot crashes when the psd size becomes too large

Open vpdn opened this issue 10 years ago • 0 comments

Currently, because of the way the psd lib works, all psd layers are kept in memory and only written to disk after all layers have been processed. This causes files with large number of layers to fill up the entire space, leading to a low memory situation.

We need to either a check for low memory situations in which case we should abort the psd creation or alter the psd generator to work in a stream based manner (NSOutputStream).

vpdn avatar Jul 15 '14 09:07 vpdn