I'm thumbnailing large (100MB-2GB) PSD files from within a Python application.
Appending "" to the input filename when using "convert" from the command line gives me a 4-6x speedup, with reduced disk and memory footprint. From what I've read, this is because it's only reading the first layer of the image in. This is very good.
However, appending "" to the input filename with:
img = PythonMagick.Image(filename + "")
...doesn't speed me up at all. The Python process does heavy disk access, apparently (based on bandwidth*time) many times the size of the file.
Is there something different I should be doing with PythonMagick.Image() in order to get the same speedups I see with convert filename.psd?
Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
1 post • Page 1 of 1