Author Topic: Post Upload Processing  (Read 13651 times)

0 Members and 1 Guest are viewing this topic.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Post Upload Processing
« Reply #15 on: July 01, 2003, 19:17:24 »
Hmmm, that's odd! There's only one call to uploadPhoto, followed immediately by an exit() command, so that shouldn't be happening...

Maybe you added the e-mail call inside a loop?

Offline kl

  • album.pl User
  • *
  • Posts: 7
  • Karma: +0/-0
  • I forgot to change the default text
Re: Post Upload Processing
« Reply #16 on: July 29, 2005, 10:00:20 »
Hi Mike,
I'm a little bit about the post upload processing command that you have below
postupload=convert -font Courier -fill red -draw 'rotate 270 text -60,10 "album.pl"' ####OBJECT####
does it meant if I replaced "album.pl" with different of wording like "kl", will it imprint the water marking "kl" in the pictures ?
I've tried but seem doesn't work.
thanks,
KL

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Post Upload Processing
« Reply #17 on: July 29, 2005, 13:18:28 »
Yep, that's what it *should* do but you need to have ImageMagick and FreeType installed for that to work...

Offline hoegaarden_bier

  • album.pl User
  • *
  • Posts: 2
  • Karma: +0/-0
  • I forgot to change the default text
Re: Post Upload Processing
« Reply #18 on: October 06, 2005, 23:34:16 »
Another easy way to send 1 email after a batch upload would be to have a postupload script write the file name to a seperate file.
Then have a perl script in a cromtab check that the file has been untouched for eg 5 minutes. Then have this script send out
an email.

Still need to implement but should not take much effort.

Wim

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Post Upload Processing
« Reply #19 on: October 07, 2005, 07:43:41 »
Good idea as well!

Offline freediver

  • album.pl Tester
  • **
  • Posts: 27
  • Karma: +0/-0
    • OzPolitic
Re: Post Upload Processing
« Reply #20 on: January 23, 2008, 03:18:08 »
This looks very useful. I've been doing 'watermarking' manually in MS Paint and photoshop.

How do I install FreeType and ImageMagick? I googled ImageMagick and it looked too complicated for me - lots of command line stuff that I don't think I can do. I can ftp files and use cPanel. Last time I looked into command line stuff for .htaccess it turned out that cPanel has a facility to do it for me.

I do most of the uploading myself. Should I just install a local copy and do the watermarking on my PC? I would prefer to get the server to do it to all photos if possible.
Founding member of

Offline frister

  • album.pl Donor
  • album.pl Hacker
  • ****
  • Posts: 230
  • Karma: +42/-0
  • half baked ideas are better than none
    • fristersoft travelogue
Re: Post Upload Processing
« Reply #21 on: January 24, 2008, 20:18:37 »
The album_test.pl script that comes with album.pl should tell you if ImageMagick is already installed or not. If it is, then just try the postupload command samples. I don't know of any other way of checking if freetype is installed on your host.

As to watermarking on the PC before uploading: I've been using a little free for personal use utility called Picture-Shark. It's specifically designed for this job and can do whole batches of of photos at once.

Offline freediver

  • album.pl Tester
  • **
  • Posts: 27
  • Karma: +0/-0
    • OzPolitic
Re: Post Upload Processing
« Reply #22 on: January 24, 2008, 21:15:32 »
Got it working. Thanks.

To display text in the bottom right:

convert -gravity SouthEast -font Courier -fill black -draw 'rotate 0 text 2,-2 "OzPolitic.com"' ####OBJECT####
« Last Edit: January 25, 2008, 07:18:21 by freediver »
Founding member of

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Post Upload Processing
« Reply #23 on: February 02, 2008, 19:35:11 »
Nice work, and thanks for the sample code!

Offline freediver

  • album.pl Tester
  • **
  • Posts: 27
  • Karma: +0/-0
    • OzPolitic
Re: Post Upload Processing
« Reply #24 on: February 05, 2008, 06:28:20 »
I'm giving picture shark a go at the moment. Looks good.
Founding member of