Register · Software · Search · Image Upload · Buy & Sell · Hosting

Moderated by: Fred Miranda
Username   Password

Visit the FM Store · Image Upload · Buy & Sell
FM Forum Rules
FM Forums | PRO digital corner | Join Image Upload
end
Could this be done? Go to previous topic Go to next topic
andrew81
Offline
Image Upload: 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
Image Upload: 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
Image Upload: Off
p.1 #3 · Could this be done?


lol gotta love that andrew81

Nov 04, 2009 at 02:46 AM

FM Forums | PRO digital corner | Join Image Upload
end
  Go to previous topic Go to next topic

You are not logged in. Login or Register

  Username   Password  
Lost password?