album.pl Support > Tips and Tricks

Post Upload Processing

(1/5) > >>

Mike Bobbitt:
New in 6.2:

You can configure a command to be run after a successful upload. This feature is designed to allow you to run an additional ImageMagick command on all uploaded files, but could be used to make copies, send e-mail, etc.

Any ####OBJECT#### tags will be replaced with the full path/filename of the photo uploaded. ImageMagick output (I.E. the modified image) will be stored in a temp file, and copied over the original upload if the command was successful. If undefined, no action is taken.

An example is helpful here. The following line puts "album.pl" in the upper left corner of each picture on upload. (Note: You needs FreeType installed with ImageMagick for this to work on your system)

postupload=convert -font Courier -fill red -draw 'rotate 270 text -60,10 "album.pl"' ####OBJECT####

There are a variety of other uses for this feature as well, so be creative!

Cheers

Dino:
I need more data on this... what specifically are you using this for? Sounds intriguing.

Dino:
Oh... duh...

You're putting a "watermark" on each picture that gets uploaded! Very clever, and VERY useful.

Need more info on freetype.

Mike Bobbitt:
Freetype is here:

http://www.freetype.org/

But you don't have to use this feature for watermarking, you can use it to rotate pics, crop, add a frame, etc. Anything that ImageMagick can do. In fact, you can probably run *any* command post upload, so you could back up the "original" somewhere and just put the backup into the album.

Although it's untested, you *should* be able to process multiple commands by separating them with a semi-colon...

sysop69:
Say Mike,
     If I wanted to send an e-mail with the address that are in my notify.txt file using the after -processing command, how would I go about doing that?  Or could you point me in the right direction?  Thanks

Navigation

[0] Message Index

[#] Next page

Go to full version