Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Script to resize photos dropped in a folder?
Closed Thread
Old 07-09-2008, 11:41 AM   #1 (permalink)
 
True Techie

Join Date: Nov 2003

Location: Minneapolis, MN

Posts: 157

kizzeith is on a distinguished road

Send a message via Yahoo to kizzeith
Default Script to resize photos dropped in a folder?

At an old job, we had a folder that ran a script that would crunch down photos that were dropped in and output three versions: 150 px, 300 px, and 500 px...72 DPI. We called it the "Prep for Web" folder.

It was completely automated.

How could I do something like that? A premade script would be ideal, but any suggestions are greatly appreciated!

Thanks...
__________________
Gateway Machine - I know...I sold out...if I could do it over I'd have built like I used to
MS Vista Premium 32-bit
AMD Phenom (9500) Quad-core Processor 2.20 ghz
500GB hard drive
3GB DDR2 RAM
2 Free PCI-E slots x1
1 Free PCI-E x16
kizzeith is offline  
Old 07-09-2008, 07:08 PM   #2 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,688

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: Script to resize photos dropped in a folder?

You can do this a lot of ways, using PHP, JavaScript, Java applet, Flash...etc.

Here's a tutorial I found to do it with PHP: Resize/Thumbnail Images With PHP - Viper Creations
__________________

Need website help? PM me!
CrazeD is offline  
Old 07-09-2008, 10:45 PM   #3 (permalink)
zedman3d's Avatar
 
I am of the highest lvl..

Join Date: Oct 2007

Location: Sydney, Australia

Posts: 2,456

zedman3d will become famous soon enoughzedman3d will become famous soon enough

Default Re: Script to resize photos dropped in a folder?

Yeah you need GD library which most Hosts have installed to do this with PHP, if your talking about on your home PC, with normal windows folders, i think you need to actually install PHP on your pc.
__________________



My pick up line is: I know Vernong.

Trotter: "Ask all the questions you want... whatever we don't know, we'll make
up something that sounds pretty good."

Antec-User: "I have a display now, but the darn system is crash-bandicoot on stock"
zedman3d is online now  
Old 07-10-2008, 01:20 PM   #4 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Re: Script to resize photos dropped in a folder?

If you're talking windows based you'll need some software, as for as i know this can't be done with any programming through the windows gui.

If you're talking hosting it can very much be done with php / javascript

~ Tkey
Yek is offline  
Old 07-10-2008, 02:11 PM   #5 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default Re: Script to resize photos dropped in a folder?

Quote:
as for as i know this can't be done with any programming through the windows gui.
Actually it can. The simplest way would be to use the FileSystemWatcher in a .Net app or windows service.
jaeusm is offline  
Old 07-10-2008, 02:27 PM   #6 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Re: Script to resize photos dropped in a folder?

Any links on this jaeusm ?

You've got me interested

Cheers,

~ Tkey
Yek is offline  
Old 07-11-2008, 07:14 AM   #7 (permalink)
zedman3d's Avatar
 
I am of the highest lvl..

Join Date: Oct 2007

Location: Sydney, Australia

Posts: 2,456

zedman3d will become famous soon enoughzedman3d will become famous soon enough

Default Re: Script to resize photos dropped in a folder?

Yeah you can do it. Ive seen it done with Python.
__________________



My pick up line is: I know Vernong.

Trotter: "Ask all the questions you want... whatever we don't know, we'll make
up something that sounds pretty good."

Antec-User: "I have a display now, but the darn system is crash-bandicoot on stock"
zedman3d is online now  
Old 07-11-2008, 09:17 AM   #8 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default Re: Script to resize photos dropped in a folder?

Quote:
Any links on this jaeusm ?
MSDN doc for FileSystemWatcher: FileSystemWatcher Class (System.IO)
jaeusm is offline  
Old 07-11-2008, 06:40 PM   #9 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,688

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: Script to resize photos dropped in a folder?

Quote:
Originally Posted by Tkey View Post
If you're talking windows based you'll need some software, as for as i know this can't be done with any programming through the windows gui.
What?

Surely C/C++ or Java could do this. Or Perl/Python.
__________________

Need website help? PM me!
CrazeD is offline  
Old 07-12-2008, 07:17 AM   #10 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Re: Script to resize photos dropped in a folder?

By windows GUI i ment the folder options available. Coding in a language such as C may make this possiable, but as for changing a few options it isnt.

Sorry, it was my bad
Yek is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install xp without the xp cd. EricB Windows Operating Systems and Software 45 03-07-2009 06:17 PM
Free Photos jay_bo Web Graphics, Design, Digital Images 2 04-03-2008 07:35 AM
Home Edition Troubles ChemicalMonkey Windows Operating Systems and Software 34 01-20-2008 09:26 PM