T
toddr
I am trying to resize image files automatically in code. I searched the web
and found software called imagemagick which allows api calls to resize images
in vba code. my code is something like this:
varFromImg = fc![FullPath]
varToImg = Me.DestinationDir & "web\" & Forms!frmCopyMove![varStory] &
"_web_" & fc![FileName]
Set objIM = CreateObject("ImageMagickObject.MagickImage.1")
imgResult = objIM.Convert(varFromImg, "-resize", "600x", varToImg)
when testing using the full verison of Access 2007 it works fine. it creates
the resized image in the proper folder with a width of 600 pixels.
the problem is that when i try to package and distribute using msaccess 2007
runtime it does not work.
can anyone help with this?
and found software called imagemagick which allows api calls to resize images
in vba code. my code is something like this:
varFromImg = fc![FullPath]
varToImg = Me.DestinationDir & "web\" & Forms!frmCopyMove![varStory] &
"_web_" & fc![FileName]
Set objIM = CreateObject("ImageMagickObject.MagickImage.1")
imgResult = objIM.Convert(varFromImg, "-resize", "600x", varToImg)
when testing using the full verison of Access 2007 it works fine. it creates
the resized image in the proper folder with a width of 600 pixels.
the problem is that when i try to package and distribute using msaccess 2007
runtime it does not work.
can anyone help with this?