Image creation on IIS/Windows

ThePants - January 11, 2007 - 20:14
Project:Imagemagick
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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

dopry - January 25, 2007 - 00:17
Project:ImageCache» Imagemagick
Version:4.7.x-1.x-dev» HEAD

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

 
 

Drupal is a registered trademark of Dries Buytaert.