AllAboutLearningPress / Photo-Storage-and-Gallery

Share photo assets with all users in an easy to use gallery with a powerful backend.
3 stars 2 forks source link

Generate previews for PSDs #20

Open AllAboutLearningPress opened 3 years ago

AshrafAkon commented 3 years ago

@dyner previews for big psd files (max image size can go upto 11gb) cant be done efficiently. Its due to massive amount of data in layers that need to be loaded in ram in order to export. The current implementation of reading PSD files in python psd-tools needs a lot of ram (about 16gb for a 600 mb file).The biggest possible ram is 10gb for aws lamda. I am thinking that the server should provide auto preview for files less than or equal to 50MB(megabytes). If the file is bigger than that user will have the option to add preview.

dyner commented 3 years ago

@dyner previews for big psd files (max image size can go upto 11gb) cant be done efficiently. Its due to massive amount of data in layers that need to be loaded in ram in order to export. The current implementation of reading PSD files in python psd-tools needs a lot of ram (about 16gb for a 600 mb file).The biggest possible ram is 10gb for aws lamda. I am thinking that the server should provide auto preview for files less than or equal to 50MB(megabytes). If the file is bigger than that user will have the option to add preview.

Would it be reasonable to go to the maximum of Lambda? For anything larger we can return "Too large to preview" to the user.

I don't think we need an option available for the user to upload the preview. That would add too much complexity for the user I think.

AshrafAkon commented 3 years ago

We could do that.