help! some imagemagick problems i met
Posted: 2007-12-24T11:31:40-07:00
i have use imagemagick c api for reading in an image, resize and convert to another format for months.
during the times, i met some problems.
1. some times, an unexpert image will cause very big temp files, what's more. will leave some empty temp files like
magick-XXxasss in tmp/ file, from some logs, i found these temp files cause during BlobToImage. when this function failed, may leave empty temp files. is there any body met the same problem or have any suggestiones to avoid?
2. when the image is very large, like 5000 * 4000 e.g. the resize function will use a lot of cpu even more than 99%, and may last more than 10sec. is it can be faster, like use better cpus? or any ways to get the image info before convert it in to pixel cache?
3. some times, mulit-progress is unstable.
or any advise for improve the performance.
thanks
during the times, i met some problems.
1. some times, an unexpert image will cause very big temp files, what's more. will leave some empty temp files like
magick-XXxasss in tmp/ file, from some logs, i found these temp files cause during BlobToImage. when this function failed, may leave empty temp files. is there any body met the same problem or have any suggestiones to avoid?
2. when the image is very large, like 5000 * 4000 e.g. the resize function will use a lot of cpu even more than 99%, and may last more than 10sec. is it can be faster, like use better cpus? or any ways to get the image info before convert it in to pixel cache?
3. some times, mulit-progress is unstable.
or any advise for improve the performance.
thanks