Slideshows and galleries can look a little inelegant if you mix photos of different orientations: i.e. they contain a mix of portrait (3×4) and landscape (4×3) photos.
The new restrict parameter aims to get around this problem by filtering out photos that do not match the restriction.
In the current release; only a single restriction is supported: restrict=”orientation”.
Here are some examples of this feature in action:
Landscape Gallery
If you specify restrict=”orientation” orientation=”landscape” Slickr Flickr will filter out any portrait photos and only display landscape photos.
[code]slickr-flickr search="galleries" gallery="72157625063376003" type="slideshow" orientation="landscape" restrict="orientation"[/code]
This has 5 landscape photos.
Portrait Gallery
Similarly if you specify restrict=”orientation” orientation=”portrait” Slickr Flickr will filter out any landscape photos and only display portrait photos.
[code]slickr-flickr search="galleries" gallery="72157625063376003" type="slideshow" orientation="portrait" restrict="orientation"[/code]
This has 2 portrait photos.
Full Gallery With No Restriction
If no restriction is applied that you get the mix of portrait and landscape photos
[code]slickr-flickr search="galleries" gallery="72157625063376003" type="slideshow" [/code]
This has 7 photos.
In later release I plan to add to the restrictions.
For example restriction=”min-height=350″ could filter out any (letterbox) photos that were too short to display in a slideshow where the rest of the photos are of standard landscape size size (500px by 375 px).
Russell says
Hi Johan,
Right now Slickr Flickr does search by tag, by photoset, by favorite, by gallery and by photostream but not by text. However searching by text is supported by the Flickr API so it is something I can add relatively easily.
Regards
Russell
Johan Horak says
Hi Flickr gives you an option to search and then create a slideshow of the search. You can then embed this slideshow anywhere. I have taken the code but the size defaults to a small slideshow although I have increased it to a width of 700.
Here’s the slideshow http://www.flickr.com//search/show/?q=red+bus+cape+town&ss=0&ct=0&mt=all&adv=1
Is it possible to use your plugin wit this search to publish the slideshow on my WP blog?
Russell says
Hi,
Use the slick-flickr parameter: restrict=”portrait” to just show portrait photos. It is Slickr Flickr that is applying this filter rather than the Flickr API.
Regards
Russell
Web Hosting says
I was wondering how do you achieve to filter the images to only get the portrait orientated pictures out of flickr using their API’s flickr.photo.search? I can’t find any parameter for that 🙁 Thanks for the help!