fredmiranda.com
Login

Moderated by: Fred Miranda
  New fredmiranda.com Mobile Site
  New Feature: SMS Notification alert
  New Feature: Buy & Sell Watchlist
  

FM Forums | Pro Digital Corner | Join Upload & Sell

  

Archive 2009 · Could this be done?

  
 
andrew81
Offline
• • • •
[X]
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 03: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 07:15 AM
pointedem
Offline
• •
Upload & Sell: Off
p.1 #3 · Could this be done?


lol gotta love that andrew81


Nov 03, 2009 at 09:46 PM





FM Forums | Pro Digital Corner | Join Upload & Sell

    
 

Welcome back
Log in to your account