-
Notifications
You must be signed in to change notification settings - Fork 2
π Photo Size Information
Syashin , Chen edited this page Sep 2, 2018
·
7 revisions
If you want to get photo's every kind of sizes, you can create Photo Instance, and get Instance Properties.
Name | Type | Description |
---|---|---|
photo_url | str | Photo url is like: https://www.flickr.com/photos/139958401@N06/43371871895/ |
photo_url accept these kinds of url below:
slide_page_url = "https://www.flickr.com/photos/139958401@N06/44277691471/"
# Return "Photo Instance"
target_photo = PyFlickr.getPhoto(photo_url = slide_page_url)
Now, you get a Photo Instance named target_photo, and it has 14 properties :
Name | Type | Usage |
---|---|---|
title | str | target_photo.title |
slide | str | target_photo.slide |
square_75 | str | target_photo.square_75 |
square_150 | str | target_photo.square_150 |
thumbnail | str | target_photo.thumbnail |
small_240 | str | target_photo.small_240 |
small_320 | str | target_photo.small_320 |
medium_500 | str | target_photo.medium_500 |
medium_640 | str | target_photo.medium_640 |
medium_800 | str | target_photo.medium_800 |
large_1024 | str | target_photo.large_1024 |
large_1600 | str | target_photo.large_1600 |
large_2048 | str | target_photo.large_2048 |
original | str | target_photo.original |
target_photo = PyFlickr.getPhoto(photo_url = "https://www.flickr.com/photos/139958401@N06/44277691471/")
#Return "title" : 44277691471
title = target_photo.title
#Return "size page" : https://www.flickr.com/photos/139958401@N06/44277691471/sizes/c
size_medium_800 = target_photo.medium_800
#Return "size page" : https://www.flickr.com/photos/139958401@N06/44277691471/sizes/o
size_original = target_photo.original