GData.PicasaWebFile¶
- Subclasses:
None
Methods¶
- Inherited:
GData.Entry (24), GData.Parsable (5), GObject.Object (37), GData.Commentable (9)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
GData.Parsable (9), GObject.Object (7), GData.Commentable (3)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The ID for the file’s album. |
||
r/w |
The file’s descriptive caption. |
||
r/w |
A checksum of the file, useful for duplicate detection. |
||
r |
The number of comments on the file. |
||
r |
The nickname of the user credited with this file. |
||
r |
The distance to the subject. |
||
r |
The time this file was last edited. |
||
r |
The exposure time. |
||
r/w/co |
The ID of the file. |
||
r |
Indicates whether the flash was used. |
||
r |
The focal length used in the shot. |
||
r |
The F-stop used. |
||
r |
The height of the photo or video, in pixels. |
||
r |
An unique ID for the image. |
||
r/w |
Indicates whether comments are enabled. |
||
r |
The ISO speed. |
||
r/w |
The location as a latitude coordinate associated with this file. |
||
r/w |
The location as a longitude coordinate associated with this file. |
||
r |
The name of the manufacturer. |
||
r |
The model of the camera. |
||
r/w |
The rotation of the photo, in degrees. |
||
r |
The size of the file, in bytes. |
||
[ |
r/w |
A |
|
r/w |
The time the file was purportedly taken. |
||
r/w/co |
The version number of the file. |
||
r |
The status of the file, if it is a video. |
||
r |
The width of the photo or video, in pixels. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.PicasaWebFile(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.PicasaWebFile
structure are private and should never be accessed directly.New in version 0.4.0.
- classmethod new(id)¶
- Parameters:
- Returns:
a new
GData.PicasaWebFile
; unref withGObject.Object.unref
()- Return type:
Creates a new
GData.PicasaWebFile
with the given ID and default properties.New in version 0.4.0.
- get_album_id()¶
- Returns:
the ID of the album containing the
GData.PicasaWebFile
- Return type:
Gets the
GData.PicasaWebFile
:album-id
property. This is in the same form as returned byGData.PicasaWebAlbum.get_id
().New in version 0.4.0.
-
Gets the
GData.PicasaWebFile
:caption
property.New in version 0.4.0.
- get_checksum()¶
-
Gets the
GData.PicasaWebFile
:checksum
property.New in version 0.4.0.
- get_comment_count()¶
- Returns:
the number of comments on the file
- Return type:
Gets the
GData.PicasaWebFile
:comment-count
property.New in version 0.4.0.
- get_contents()¶
- Returns:
a
GLib.List
ofGData.MediaContent
items- Return type:
Returns a list of media content, e.g. the actual photo or video.
New in version 0.4.0.
- get_coordinates()¶
- Returns:
- Return type:
Gets the
GData.PicasaWebFile
:latitude
andGData.PicasaWebFile
:longitude
properties, setting the out parameters to them. If either latitude or longitude isNone
, that parameter will not be set. If the coordinates are unset, latitude and longitude will be set toGObject.G_MAXDOUBLE
.New in version 0.5.0.
- get_credit()¶
- Returns:
the nickname of the user credited with this file
- Return type:
Gets the
GData.PicasaWebFile
:credit
property.New in version 0.4.0.
- get_distance()¶
- Returns:
the distance recorded in the photo’s EXIF, or -1 if unknown
- Return type:
Gets the
GData.PicasaWebFile
:distance
property.New in version 0.5.0.
- get_edited()¶
- Returns:
the UNIX timestamp for the time the file was last edited, or -1
- Return type:
Gets the
GData.PicasaWebFile
:edited
property. If the property is unset, -1 will be returned.New in version 0.4.0.
- get_exposure()¶
- Returns:
the exposure value, or 0 if unknown
- Return type:
Gets the
GData.PicasaWebFile
:exposure
property.New in version 0.5.0.
- get_flash()¶
-
Gets the
GData.PicasaWebFile
:flash
property.New in version 0.5.0.
- get_focal_length()¶
- Returns:
the focal-length value, or -1 if unknown
- Return type:
Gets the
GData.PicasaWebFile
:focal-length
property.New in version 0.5.0.
- get_fstop()¶
- Returns:
the F-stop value, or 0 if unknown
- Return type:
Gets the
GData.PicasaWebFile
:fstop
property.New in version 0.5.0.
- get_height()¶
- Returns:
the height of the image or video, in pixels
- Return type:
Gets the
GData.PicasaWebFile
:height
property.New in version 0.4.0.
- get_id()¶
- Returns:
the file’s ID
- Return type:
Gets the
GData.PicasaWebFile
:file-id
property.New in version 0.7.0.
- get_image_unique_id()¶
-
Gets the
GData.PicasaWebFile
:image-unique-id
property.New in version 0.5.0.
- get_iso()¶
- Returns:
the ISO speed, or -1 if unknown
- Return type:
Gets the
GData.PicasaWebFile
:iso
property.New in version 0.5.0.
- get_make()¶
-
Gets the
GData.PicasaWebFile
:make
property.New in version 0.5.0.
- get_model()¶
-
Gets the
GData.PicasaWebFile
:model
property.New in version 0.5.0.
- get_rotation()¶
- Returns:
the image’s rotation, in degrees
- Return type:
Gets the
GData.PicasaWebFile
:rotation
property.New in version 0.4.0.
- get_size()¶
- Returns:
the size of the file, in bytes
- Return type:
Gets the
GData.PicasaWebFile
:size
property.New in version 0.4.0.
- get_tags()¶
-
Gets the
GData.PicasaWebFile
:tags
property.New in version 0.4.0.
- get_thumbnails()¶
- Returns:
a
GLib.List
ofGData.MediaThumbnails
, orNone
- Return type:
Returns a list of thumbnails, often at different sizes, for this file. Currently, PicasaWeb usually returns three thumbnails, with widths in pixels of 72, 144, and 288. However, the thumbnail will not be larger than the actual image, so thumbnails may be smaller than the widths listed above.
New in version 0.4.0.
- get_timestamp()¶
- Returns:
the UNIX timestamp for the timestamp property in milliseconds, or -1
- Return type:
Gets the
GData.PicasaWebFile
:timestamp
property. It’s a UNIX timestamp in milliseconds (not seconds) since the epoch. If the property is unset,-1 will be returned.
New in version 0.4.0.
- get_version()¶
-
Gets the
GData.PicasaWebFile
:version
property.New in version 0.4.0.
- get_video_status()¶
- Returns:
the status of this video (“pending”, “ready”, “final” or “failed”), or
None
- Return type:
Gets the
GData.PicasaWebFile
:video-status
property.New in version 0.4.0.
- get_width()¶
- Returns:
the width of the image or video, in pixels
- Return type:
Gets the
GData.PicasaWebFile
:width
property.New in version 0.4.0.
- is_commenting_enabled()¶
-
Gets the
GData.PicasaWebFile
:is-commenting-enabled
property.New in version 0.4.0.
- set_album_id(album_id)¶
- Parameters:
album_id (
str
) – the ID of the new album for this file
Sets the
GData.PicasaWebFile
:album-id
property, effectively moving the file to the album.New in version 0.4.0.
-
Sets the
GData.PicasaWebFile
:caption
property to caption.Set caption to
None
to unset the file’s caption.New in version 0.4.0.
- set_checksum(checksum)¶
-
Sets the
GData.PicasaWebFile
:checksum
property to checksum.Set checksum to
None
to unset the property.New in version 0.4.0.
- set_coordinates(latitude, longitude)¶
- Parameters:
latitude (
float
) – the file’s new latitude coordinate, orGObject.G_MAXDOUBLE
longitude (
float
) – the file’s new longitude coordinate, orGObject.G_MAXDOUBLE
Sets the
GData.PicasaWebFile
:latitude
andGData.PicasaWebFile
:longitude
properties to latitude and longitude respectively.New in version 0.5.0.
- set_is_commenting_enabled(is_commenting_enabled)¶
- Parameters:
is_commenting_enabled (
bool
) –True
if commenting should be enabled for the file,False
otherwise
Sets the
GData.PicasaWebFile
:is-commenting-enabled
property to is_commenting_enabled.New in version 0.4.0.
- set_rotation(rotation)¶
- Parameters:
rotation (
int
) – the new rotation for the image, in degrees
Sets the
GData.PicasaWebFile
:rotation
property to rotation.The rotation is absolute, rather than cumulative, through successive calls to
GData.PicasaWebFile.set_rotation
(), so calling it with 90° then 20° will result in a final rotation of 20°.New in version 0.4.0.
- set_tags(tags)¶
-
Sets the
GData.PicasaWebFile
:tags
property to tags.Set tags to
None
to unset the property.New in version 0.4.0.
- set_timestamp(timestamp)¶
- Parameters:
timestamp (
int
) – a UNIX timestamp, or -1
Sets the
GData.PicasaWebFile
:timestamp
property from timestamp. This should be a UNIX timestamp in milliseconds (not seconds) since the epoch. If timestamp is -1, the property will be unset.New in version 0.4.0.
Property Details¶
- GData.PicasaWebFile.props.album_id¶
-
The ID for the file’s album. This is in the same form as returned by
GData.PicasaWebAlbum.get_id
().For more information, see the gphoto specification.
New in version 0.4.0.
-
The file’s descriptive caption.
New in version 0.4.0.
- GData.PicasaWebFile.props.checksum¶
-
A checksum of the file, useful for duplicate detection.
For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebFile.props.comment_count¶
-
The number of comments on the file.
For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebFile.props.credit¶
-
The nickname of the user credited with this file.
For more information, see the Media RSS specification.
New in version 0.4.0.
- GData.PicasaWebFile.props.distance¶
-
The distance to the subject reported in the image’s EXIF.
For more information, see the EXIF element reference.
New in version 0.5.0.
- GData.PicasaWebFile.props.edited¶
-
The time this file was last edited. If the file has not been edited yet, the content indicates the time it was created.
For more information, see the Atom Publishing Protocol specification.
New in version 0.4.0.
- GData.PicasaWebFile.props.exposure¶
-
The exposure time.
For more information, see the EXIF element reference.
New in version 0.5.0.
- GData.PicasaWebFile.props.file_id¶
- Name:
file-id
- Type:
- Default Value:
- Flags:
The ID of the file. This is a substring of the ID returned by
GData.Entry.get_id
() forGData.PicasaWebFiles
; for example, ifGData.Entry.get_id
() returned “http://picasaweb.google.com/data/entry/user/libgdata.picasaweb/albumid/5328889949261497249/photoid/5328890138794566386” for a particularGData.PicasaWebFile
, theGData.PicasaWebFile
:file-id
property would be “5328890138794566386”.For more information, see the gphoto specification.
New in version 0.7.0.
- GData.PicasaWebFile.props.flash¶
-
Indicates whether the flash was used.
For more information, see the EXIF element reference.
New in version 0.5.0.
- GData.PicasaWebFile.props.focal_length¶
-
The focal length for the shot.
For more information, see the EXIF element reference.
New in version 0.5.0.
- GData.PicasaWebFile.props.fstop¶
-
The F-stop value.
For more information, see the EXIF element reference.
New in version 0.5.0.
- GData.PicasaWebFile.props.height¶
-
The height of the photo or video, in pixels.
For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebFile.props.image_unique_id¶
-
An unique ID for the image found in the EXIF.
For more information, see the EXIF element reference.
New in version 0.5.0.
- GData.PicasaWebFile.props.is_commenting_enabled¶
-
Whether commenting is enabled for this file.
New in version 0.4.0.
- GData.PicasaWebFile.props.iso¶
- Name:
iso
- Type:
- Default Value:
-1
- Flags:
The ISO speed.
For more information, see the EXIF element reference and ISO 5800:1987.
New in version 0.5.0.
- GData.PicasaWebFile.props.latitude¶
-
The location as a latitude coordinate associated with this file. Valid latitudes range from -90.0 to 90.0 inclusive.
For more information, see the GeoRSS specification.
New in version 0.5.0.
- GData.PicasaWebFile.props.longitude¶
-
The location as a longitude coordinate associated with this file. Valid longitudes range from -180.0 to 180.0 inclusive.
For more information, see the GeoRSS specification.
New in version 0.5.0.
- GData.PicasaWebFile.props.make¶
-
The name of the manufacturer of the camera.
For more information, see the EXIF element reference.
New in version 0.5.0.
- GData.PicasaWebFile.props.model¶
-
The model of the camera.
For more information, see the EXIF element reference.
New in version 0.5.0.
- GData.PicasaWebFile.props.rotation¶
-
The rotation of the photo, in degrees. This will only be non-zero for files which are pending rotation, and haven’t yet been permanently modified. For files which have already been rotated, this will be 0.
For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebFile.props.size¶
-
The size of the file, in bytes.
For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebFile.props.tags¶
-
A
None
-terminated array of tags associated with the file.For more information, see the Media RSS specification.
New in version 0.4.0.
- GData.PicasaWebFile.props.timestamp¶
-
The time the file was purportedly taken. This a UNIX timestamp in milliseconds (not seconds) since the epoch.
For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebFile.props.version¶
- Name:
version
- Type:
- Default Value:
- Flags:
The version number of the file. Version numbers are based on modification time, so they don’t increment linearly.
For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebFile.props.video_status¶
-
The status of the file, if it is a video. For example:
GData.PICASAWEB_VIDEO_STATUS_PENDING
orGData.PICASAWEB_VIDEO_STATUS_FAILED
.For more information, see the gphoto specification.
New in version 0.4.0.
- GData.PicasaWebFile.props.width¶
-
The width of the photo or video, in pixels.
For more information, see the gphoto specification.
New in version 0.4.0.