Changeset 2670 for trunk/tools


Ignore:
Timestamp:
Oct 5, 2008, 11:22:57 PM (16 years ago)
Author:
plg
Message:

feature 885 added: pwg.images.add web API method now supports additional
high resolution format.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/piwigo_remote.pl

    r2634 r2670  
    77use LWP::UserAgent;
    88use Getopt::Long;
     9use Encode qw/is_utf8 decode/;
    910
    1011my %opt = ();
    1112GetOptions(
    1213    \%opt,
    13     qw/action=s file=s thumbnail=s categories=s define=s%/
     14    qw/action=s file=s thumbnail=s high=s categories=s define=s%/
    1415);
    1516
     
    6263        categories => $opt{categories},
    6364    };
     65
     66    if (defined $opt{high}) {
     67        $form->{high_content} = encode_base64(read_file($opt{high}));
     68        $form->{high_sum} = file_md5_hex($opt{high});
     69    }
    6470
    6571    foreach my $key (keys %{ $opt{define} }) {
Note: See TracChangeset for help on using the changeset viewer.