Link to home
Start Free TrialLog in
Avatar of bsharath
bsharathFlag for India

asked on

How can i resize 4 images and place them in equal sizes in 1 file.

Hi,

How can i resize 4 images and place them in equal sizes in 1 file.
I have 400 + Pictures in a folder i want a script that can make these just 100 files by resizing them smaller in equal shares and place 4 images in 1 file and name them 1,2,3,4.jpg.

So when opened i can see 4 images in 1 mspaint or windows Photo gallery.

Regards
sharath
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

I'm not aware of any way to do this in pure VBScript (.vbs) or CMD Scripting...you would need to call out to an external application or library.

You could do it in C# or VB.Net Express, both of which are FREE from Microsoft:
http://www.microsoft.com/express/product/
Avatar of bsharath

ASKER

Any way is ok if i can achieve it. Please let me know what i need to do....
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank U Idle_Mind

Now can i know which software i need to download and do what. Just once if you can instruct me i shall keep that in mind...
Yeah...download VB.Net 2005 Express from the link I gave.  ...or you could download the newer VB.Net 2008 Express.  Either would work and both are free.  All you have to do is register it once you have it installed.  It's pretty easy.

Then you start with a "WinForms" Project (Windows Application) which gives an app with just one default form (Form1).

Right Click the Form and select "View Code".
Paste the code above over the ENTIRE default code.

Change this line so it reflects the folder you want to work with:

    Dim folder As String = "c:\"

Run the application...

I get this error
Untitled.jpg
You need to add a Button (Button1) to your Form.
Button?
Thanks a lot it worked great....
:-)