+ Reply to Thread
Results 1 to 4 of 4

Image file resize

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Image file resize

    Hello im sending image files via EMail attachment with VBA code.

    Though the images are 5Mb+ each and when sending 20+ on a 128k upload connection that takes a while.

    Is there a way that the images can be resized through vba and saved as a new folder.
    Or send the images to another program and pause the code until the resizing has been done.

    Thankyou.

    Just found this http://www.lebans.com/imageclass.htm for axcess VBA so im guessing that i can be done.
    Im looking to do a batch of files.
    any advice would help
    Last edited by D_Rennie; 09-10-2009 at 02:29 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Image file resize

    i also found http://www.rw-designer.com/picture-resize at it allows for running in command line.
    Though i realy dont know whats going on.
    can this be done??

    also found http://www.download32.com/quickresizerapi-d18881.html i have got this to work in command prompt though is there a way to send
    "C:\\Program Files\\QuickResizerAPI\\QuickResizerApiExe.exe" 3 "C:\\Documents and Settings\\1 1\\Desktop" "" "c:\\" "" "JPG" "JPG" "hh" -1 600 450 1
    through to the command prompt
    ive tryed call shell though vba didnt like the above code

    cheers
    Last edited by D_Rennie; 09-09-2009 at 11:53 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Image file resize

    after a lot of searching ive came accross a command line image resizer http://www.bestcode.com/html/jpegsize.html with this i can work it into my code quite easly.

  4. #4
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Image file resize

    just in case anyone everlooks up this thread. Ill post everythink to finish it off.

    call the program like
    Shell "C:\jpegsize.exe", vbMaximizedFocus
    Though im ny case i needed vba to wait until all the images where resized.
    http://www.appspro.com/Tips/VBA%20Tips.htm has a great shell and wait example for doing just this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1