Performance, Pixel Cache, memory for multi layer PSD
Posted: 2010-09-02T13:29:50-07:00
Hi,
I have this PSD file with 25 million pixels and about 40 layers. Reading through the Architecture tutorial, I understand that a pixel cache is build for processing an image, loading all pixels. Let's say I use Q8, so that would be 25 mil x 4 channels Bytes of memory at least.
Here are my questions/comments.
1) Does the number of layers play a role ? it would seem to be as the physical memory consumption is actually beyond 100M. It actually uses all of it so the above formula should include in the product the number of layers too I guess.
2) The first step in my process is extracting the color space, then creating a JPEG thumbnail for it. These steps both take around 30 minutes or more each. Are there any configurations or tips I missed to somehow switch to a different "way" of processing that would speed up things?
Or building this pixel cache is at the center of things, it needs that memory and that it's it?
I mean I read the part saying "In most cases, the benefits of the pixel cache typically outweigh any disadvantages." but I have used two other libraries that convert this file in 1 sec. it also take 1 sec to extract the colorspace. This sort of performance I would think holds a lot of weight in the balance of things - assuming the result is of decent quality of course.
I also know that overall ImageMagick is a superior library to the other ones I have used but wish there would be an option for fast processing - it looks possible. I am no expert in image processing and I mean no offense. I am convinced the architecture is solid.
Thanks
Cristian
I have this PSD file with 25 million pixels and about 40 layers. Reading through the Architecture tutorial, I understand that a pixel cache is build for processing an image, loading all pixels. Let's say I use Q8, so that would be 25 mil x 4 channels Bytes of memory at least.
Here are my questions/comments.
1) Does the number of layers play a role ? it would seem to be as the physical memory consumption is actually beyond 100M. It actually uses all of it so the above formula should include in the product the number of layers too I guess.
2) The first step in my process is extracting the color space, then creating a JPEG thumbnail for it. These steps both take around 30 minutes or more each. Are there any configurations or tips I missed to somehow switch to a different "way" of processing that would speed up things?
Or building this pixel cache is at the center of things, it needs that memory and that it's it?
I mean I read the part saying "In most cases, the benefits of the pixel cache typically outweigh any disadvantages." but I have used two other libraries that convert this file in 1 sec. it also take 1 sec to extract the colorspace. This sort of performance I would think holds a lot of weight in the balance of things - assuming the result is of decent quality of course.
I also know that overall ImageMagick is a superior library to the other ones I have used but wish there would be an option for fast processing - it looks possible. I am no expert in image processing and I mean no offense. I am convinced the architecture is solid.
Thanks
Cristian