First, congratulations for the ImageMagick convert utility, that is very usefull and powerfull.
But today, I'm stuck on a permission problem that occurs when the Alfresco ECM (a Tomcat webapp) is run as service on Windows using a service user that is not Administrator (for security purpose). When the convert utility is run by lauching a system command from the Tomcat service, I get this error :
Code: Select all
Execution result:
os: Windows 7
command: [C:\Program Files (x86)\ImageMagick-6.7.1-Q16\convert.exe, C:\work\cecm-trunk\temp\Alfresco\ImageMagickContentTransformerWorker_source_4497324710097173389.pdf, +repage, -auto-orient, -background, white, -alpha, Background, -thumbnail, 160x160^>, -gravity, Center, -crop, 160x160+0+0, -extent, 160x160, -auto-orient, C:\work\cecm-trunk\temp\Alfresco\ImageMagickContentTransformerWorker_target_1294637489384402883.png]
succeeded: false
exit code: 1
out:
err: Magick: unable to create temporary file `C:\work\cecm-trunk\temp\Alfresco\ImageMagickContentTransformerWorker_source_4497324710097173389.pdf': Permission denied @ error/pdf.c/ReadPDFImage/389.
Magick: missing an image filename `C:\work\cecm-trunk\te
at org.alfresco.repo.content.transform.magick.ImageMagickContentTransformerWorker.transformInternal(ImageMagickContentTransformerWorker.java:183)
at org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformerWorker.transform(AbstractImageMagickContentTransformerWorker.java:249)
I've already tried to define the MAGICK_TEMPORARY_PATH dir with a writable folder without success.
I have no problem with image -> image conversion using the same service, and pdf -> image conversion works if I run the service as System user. The problem only occurs with pdf -> image transformation when the service runs as normal user.
Any idea ?