Problem with memory PDF to PNG
Posted: 2009-08-24T07:32:18-07:00
Greetings,
maybe it's not bug, i'm quite new with imagemagick and i have no idea, how much memory can conversion from PDF to PNG images take. However i need to convert PDF file(1,3MB, 32 pages) to PNG files in 1000 x something. And i need text in images to be readable. But when i run following command on server, really big amount of memory(over giga) is used and i have to restart server and no PNGs are created... and some way of using less memory exists, because acrobat uses only something over 100MB when converting to png's.
Can i do anything to lower memory usage by this script? I'm writing here because i don't have possiblity to try balancing quality/density params, because we can't afford restarting server all the time.
I've posted it here, because i'm not sure it's usual to use such amount of memory... So if it's not memory leak problem u can move this topic to right place.
maybe it's not bug, i'm quite new with imagemagick and i have no idea, how much memory can conversion from PDF to PNG images take. However i need to convert PDF file(1,3MB, 32 pages) to PNG files in 1000 x something. And i need text in images to be readable. But when i run following command on server, really big amount of memory(over giga) is used and i have to restart server and no PNGs are created... and some way of using less memory exists, because acrobat uses only something over 100MB when converting to png's.
Code: Select all
convert {source}.pdf -resize 1000 -quality 100 {target}.png
I've posted it here, because i'm not sure it's usual to use such amount of memory... So if it's not memory leak problem u can move this topic to right place.