Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie: Can VB Resize Images or run a command line arg

Status
Not open for further replies.

barkley1979

Technical User
Jun 24, 2003
11
GB
Hi
I have never used VB before, and before I go about trying to learn it I would like to know whether it will solve my problem.
I have a batch of 5 images, the main image is in a separate directory from the other four.
I need all images to be resized and renamed in the following format:
The single image needs to be resized to 400x400 pixels and called test_large.jpg and 70x53 pixels and called test_small.jpg
The other four need to be resized to 400x400 and 70x70 and called test_l1.jpg and test_s1.jpg (from 1 to 4).
irfanview can perform the resizing (using the following command line:
i_view32.exe c:\test.jpg /resize=(400,400) /convert=c:\test_large.jpg
But I would like a way of automating this.
Can VB look at a specified directory, resize (or call irfanview) and image and save the images based on the above criteria?
 
You can use:

Shell "yourprogname /yourparameters"

to accomplish what you're asking.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top