Comments (2)
The image data in PSD file is compressed, so it will take more to hold decompressed image data, depending on how many layers you have and how well the compressed 170MB seems like it's a lot.
If you only need composite image data for the whole document, use these options: { skipLayerImageData: true, skipThumbnail: true }
If you need layer image data, use these options: { skipCompositeImageData: true, skipThumbnail: true }
(although this one will not save that much memory)
You can calculate how much memory it should theoretically take by using this calculation: number_of_layers * document_width * document_height * 4
bytes and check if 2GB is close to that or if it's a lot more than it should.
from ag-psd.
Thank you for quick reply
from ag-psd.
Related Issues (20)
- Text Color parsing error in file that was converted from CMYK to RGB HOT 2
- Issue with ag-psd modifying PSD file leading to ArgumentOutOfRangeException when loaded with Aspose.PSD HOT 5
- After updating smart object data, I can't render whole psd. HOT 30
- saved picture cannot use HOT 1
- program error on opening modified psd file HOT 5
- Text font size is not correctly parsed HOT 5
- how to export svg with ( image, path, text as a element of svg ). is there any default function to export SVG. HOT 2
- Why is the fontSize in the styleRuns attribute smaller than the actual value after parsing? HOT 4
- Help on transform values HOT 17
- Help on placedLayer canvas preview HOT 2
- Invalid signature: '8BI' at 0x0 for the attached PSD HOT 2
- Generating thumbnail significantly increases file size HOT 11
- Could you add (fill rule / winding) to the datastructure HOT 5
- Using `vectorMaskFeather` produces corrupted file when a bitmap layer is present in the document HOT 1
- parse font size error HOT 3
- Automating the Saving Process for Modified PSD Files HOT 1
- how to read the rotation of layer? HOT 2
- How to set the contextual alternates of text style HOT 2
- how to import custom font like ttf file to text layer in write psd HOT 1
- text layer is incorrect. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ag-psd.