Closed indranilsinharoy closed 10 years ago
Upon some close inspection, it seems that there are several aspects to this particular problem. I think it would be a good idea to document what I have found till now here, for future reference. They are the following:
subprocess.Popen()
to call convert
(of course without using blurring and flatten options). It turns out that the "convert" command of ImageMagick conflicts with a Windows command of the same name, as documented here. I think a reasonable way to circumvent this problem is to provide full path to ImageMagick's convert command while calling subprocess.Popen()
. One solution could be the following:
Use a settings (possibly the existing settings file) to store options/preference about which convert to use --- convert from an installed version of ImageMagic or the convert.exe that comes along with PyZDDE. Also, the settings file will store information about whether to skip blurring and flattening, if the zCaptureWindow()
function takes too long to complete or times out.
The function call to
ipzCaptureWindow()
times out with the message "Timeout reached before PNG file was ready", and doesn't embed the desired graphic into an IPython console/notebook. Examining a bit further, it seems that the root cause of this problem is that ImageMagick's convert.exe is unable to convert the EMF into PNG file because "VCOMP100.DLL" is missing from the computer (System Error message).