In June 2013 I used the following code to upload to a picasa album.

$curl = curl_init();
curl_setopt_array( $curl,
 array( CURLOPT_CUSTOMREQUEST => 'POST'
      , CURLOPT_URL => 'https://picasaweb.google.com/data/feed/api/user/...'
      , CURLOPT_HTTPHEADER => array( 'Content-Type: image/jpeg'
          , 'Content-Length: '.$lengthOfRawJpgData
          , 'Slug: '.$imageTitle
          , 'GData-Version: 2'
          , 'Authorization: Bearer '.$myAccessToken )
      , CURLOPT_POSTFIELDS => $rawJpgData
      , CURLOPT_REFERER => $theUrlOfThisScript
      , CURLOPT_RETURNTRANSFER => 1 
 ) );
$response = curl_exec($curl);

The result when viewed by a url like:
https://lh5.googleusercontent.com/.../s0/myImageTitle.jpg
is a 334px x 450px JPEG image that is 102KB

If I repeat this process today (Oct.2013) uploading the same binary image 
with the same source code then the result when viewed by a url like:
https://lh5.googleusercontent.com/.../s0/myImageTitle.jpg
is a 334px x 450px JPEG image that is 48KB

I conclude that the picasa api is automatically compressing the image 
during the upload.

https://support.google.com/plus/answer/156348?hl=en
http://connect.dpreview.com/post/9680126717/picasa-redirect-google
These urls indicate that the default upload is now "standard size" and that 
"full size" uploads are only supported by the desktop clients.

https://developers.google.com/picasa-web/docs/2.0/developers_guide_protocol
The latest protocol guide doesn't indicate any flag to select "standard 
size" or "full size" during upload

Can anyone confirm/deny my observations?
Does anyone know how to upload at "full size" via the picasaweb api?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-picasa-data-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to