Index of /bin/filtr-tools/postfiltr
Name Last modified Size Description
Parent Directory 13-Sep-2006 01:21 -
postfiltr-1.0.tar.gz 13-Sep-2006 01:44 5k
NAME
postfiltr - Post-filtr photos uploaded to Flickr.
SYNOPSIS
$> /path/to/postfiltr -c /path/to/config
DESCRIPTION
Post-filtr photos uploaded to Flickr.
postfiltr will search for a user's Flickr photos tagged with postfiltr,
retrieve the original file for local filtr-ing before re-uploading (and
replacing) the photo to Flickr.
(This was originally written for use with the ZoneTag application but it
is not ZoneTag specific.)
COMMAND LINE OPTIONS
* c The path to a file that can be parsed by Config::Simple.
CONFIG OPTIONS
Options are passed to postfiltr using Config::Simple. Options are
grouped by "block".
flickr
* api_key
String. *required*
A valid Flickr API key.
* auth_token
String. *required*
A valid Flickr Auth API token.
* app_secret
A valid Flickr application secret.
* api_handler
String. *required*
The api_handler defines which XML/XPath handler to use to process
API responses.
* LibXML
Use XML::LibXML.
* XPath
Use XML::XPath.
bin
* filtr
String. *required*
The path to your instance of filtr.
postfiltr
* localstore
String. *required*
The path to a directory where postfiltr will store the original
files that are downloaded from Flickr.
* make_public
Boolean.
Change the permissions on the photo to public. Comment and metadata
permissions are left unchanged.
zonetag
* remove_geotags
Boolean.
Remove location/geo tags added ZoneTag. These are : zip:*,
geo:lat=*, geo:long=* and geotagged.
FLICKR OPTIONS
In order for postfiltr to work, you need to ensure that your photos
have the following tags :
* postfiltr
This is primary flag that indicates a photo should be post
filtr-ed.
*It will be removed once the photo has been replaced.*
* filtr:*dazd|filtr|postcrd|postr|rockstr*
This indicates the name of the filtr that a photo should be post
filtr-ed with.
*It will be removed once the photo has been replaced.*
EXAMPLE
Config file
[flickr]
api_key=123456789101112
api_secret=s33kret
auth_token=999-selfdesruct
api_handler=LibXML
[postfiltr]
localstore=/home/foobar/.zonefiltr
make_public=1
[zonetag]
remove_geotags=1
[bin]
filtr=/usr/local/bin/filtr
VERSION
1.0
AUTHOR
Aaron Straup Cope <ascope@cpan.org>
DATE
$Date: 2006/09/13 05:25:32 $
REQUIREMENTS
postfiltr has the following requirements in order to run :
* A working installation of the filtr application.
* A number Perl modules that will need to be installed via the
CPAN.
* A valid Flickr API key, application secret and Auth API token
for your Flickr account.
postfiltr comes with a bare bones CGI script for generating an
Auth API token for an API key (and its application secret).
SEE ALSO
<http://aaronland.info/bin/filtr>
<http://zonetag.research.yahoo.com/>
<http://www.flickr.com/services/api/misc.userauth.html>
LICENSE
Copyright (c) 2006 Aaron Straup Cope. All Rights Reserved.
This is free software. You may redistribute it and/or modify it
under the same terms as Perl itself.