Register · Search · Software · Join Upload & Sell · Hosting

Moderated by: Fred Miranda
Username   Password

FM Forum Rules
FM Forums | Pro Digital Corner | Join Upload & Sell   
Search Used
end
  

Archive 2009 · Could this be done?
  
 
andrew81
Offline
Upload & Sell: Off
p.1 #1 · Could this be done?


Would it be possible to write a script (I understand this is possible with a mac) to take images from a card, resize for the web, and then transmit via either FTP or email (to certain email address) said resized photos.

Nov 03, 2009 at 08:26 AM
luketrot
Offline
Upload & Sell: Off
p.1 #2 · Could this be done?


Sure. Since Mac is really BSD/Unix you can create a simple Unix shell script.

When you create your script you will need to tell it to run in a shell

#!/bin/sh

I would use Imagemagick to resize your images:

ls \source\*.jpg| sed 's:\(.*\).jpg:/sw/bin/convert \1.jpg-resize 640x640 ../\1.jpg:' | bash

Then a simple FTP script to push images to your FTP server:

HOST='Your.FTP.Server'
USER='yourid'
PASSWD='yourpw'
FILE='*.jpg'

ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE
quit
END_SCRIPT
exit 0






Nov 03, 2009 at 12:15 PM
pointedem
Offline
Upload & Sell: Off
p.1 #3 · Could this be done?


lol gotta love that andrew81

Nov 04, 2009 at 02:46 AM
end




FM Forums | Pro Digital Corner | Join Upload & Sell

end
    
 

You are not logged in. Login or Register

  Username   Password  
Lost your password?