Home Products Download Order Contacts

adobe.document.graphics.server

Subject: Re: command 'convertRasterToPdf' ran out of memory



The critical factor in how much RAM AGS needs is the pixel size and number of layers in the image. File size (due to compression) doesn't mean much.

AGS typically doesn't have out of memory problems with an image smaller than 5000 x 5000 pixels.

Photoshop's behavior is not a meaningfull comparision because it uses a scratch file while AGS does all of it's processing in RAM plus virtual memory up to a max of 2GB.

What pixel sizes are the two images and how many layers do they have?
General rules for minimizing memory usage are:
- minimize the use of "named outs" (each makes a copy of the image in RAM)
- resuse "named outs" when you no longer need them to reuse that memory.
- flatten the image as soon as you no longer need the layers.

Your code loads two PSDs and adds a layer to the second one. Is there a missing replacePixels command that adds "L2" to "L1". If so, the "named out" isn't needed on the second loadContent. Commands use the content from the prior command unless a "named in" is specified.

Watching the altercastserver process in Window's Task Manager will give you an idea of how much RAM each of your commands is using.

Reply


View All Messages in adobe.document.graphics.server

path:
command 'convertRasterToPdf' ran out of memory =>

Replies:

Copyright © 2006 WatermarkFactory.com. All Rights Reserved.