Image creation on IIS/Windows
| Project: | Imagemagick |
| Version: | HEAD |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
In _image_exec() in image.imagemagick.inc, imagecache runs the preset commands like this:popen("start \"bla\" $cmd", "r").
As a result of using start to run this task in the background, the file_move command at imagecache.module::129 gets run before the thumbnail image gets created in the temp directory, so the full resolution image gets copied back into the /files/imagecache/presetname folder which fouls things up for good, since imagecache won't try to regenerate the image once there's a file in the preset subdirectory.
I changed that line in image.imagemagick.inc to:popen($cmd, "r"), and it seems to be working.
Is there a reason to run the conversion as a background process and if so, is there a way to wait for the command(s) to finish before copying the generated file out of the temp directory?

#1
reassigning to imagemagick. I think thats the right project. as far as I know imagecache only does gd.