简体   繁体   中英

Max resolution for processing with GD

I have an applicaton to generate images at 600 DPI with 1000*360, so i need an image with 6000*2160 at 72DPI, when i try to create image with this much resolution GD is not working. Can some one tell me the reason,? or do we have any limitation in processing resolution in GD?

As @DevZer0 mentioned, it seems like a memory problem.

To bypass memory limit, try setting it as infinite with the following command in PHP at the top of your code:

<?php
ini_set('memory_limit','-1');
?>

You can use Imagemagick as another option, if your GD library doesn't work.

To create such image you can use "resample" option. Please get more info from the below site.

http://www.imagemagick.org/script/command-line-options.php#resample

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM