resizing images in code

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top