I am trying to convert an jpg image with 'convert' an vbs. The conversion is successful but there pop up an memory error every time.
System: Windows XP Pro SP3
Image Magick: 6.7.2-10-Q16-windows-dll
Script: (cscript test.vbs)
Code: Select all
Option Explicit
Dim imageMagickObject
Dim inputFileName, outputFileName
Dim targetType, quality, resize, density, msg, rotate
Set imageMagickObject = CreateObject("ImageMagickObject.MagickImage.1")
inputFileName = "original/VA_12_001.jpg"
outputFileName = "out/test.jpg"
density = "72"
resize="72x"
targetType="JPG"
quality="80"
rotate="0"
msg = imageMagickObject.Convert(inputFileName , "-strip", "-profile", "CoatedFOGRA39.icc", "-profile", "AdobeRGB1998.icc", "-colorspace", "RGB","-strip", "-density", density, "-thumbnail", resize, targetType & ":" & outputFileName)
Following error pops up:
The error is the same on multiple machines with the same number.Error wrote:The instruction at 0x0728840a9 referenced memory at 0x0728840a9 the memory could not be read.
Has anyone an idea what happens?
Thanks,
Patrick