• Home
  • About
  • Help
  • Testimonials
  • How Tos
  • Galleries
  • Slideshows
  • Galleria
  • Plugin News
  • Flickr News

How To Filter Flickr Photos By Orientation

April 28, 2011 by Russell 4 Comments

  • Share
  • +1
  • Share
  • Pin It
  • Buffer

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.

Susie in the snow

Your army is ready

Pretty Boy

welcome home

Tyler just woke up

Elvis - The Happy Cavalier

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.

Logan

Lizzie

Twelve next weekend!

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.

Susie in the snow

Logan

Your army is ready

Pretty Boy

welcome home

Tyler just woke up

Lizzie

Elvis - The Happy Cavalier

Twelve next weekend!

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).

Updated by Russell.

Filed Under: Flickr How To Tagged With: flickr gallery, flickr tutorial

Comments

  1. Russell says

    February 10, 2013 at 5:57 am

    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

  2. Johan Horak says

    February 6, 2013 at 7:42 am

    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?

  3. Russell says

    September 7, 2011 at 3:14 pm

    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

  4. Web Hosting says

    September 6, 2011 at 10:32 pm

    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!

Leave a Reply

Your email address will not be published. Required fields are marked *

Latest News

Slickr Flickr v2.8 was released on 8th February 2021. This supports WordPress 5.6, PHP 7.4 and has internationalisation support.

Small Slideshow In Widget

Rocco as a Stole

Joined At The Lughole

A Greener Way To See Life Down Under

You Can Almost See The Sea From Here

No Way!

A Girl Can Never Have Too Many Blankets

Does My Head Look Big In This?

Summertime and The Livin' is EZ

Somebody dropped a Sandwich?

Smile And The Whole World Smiles With You

Rocco "Downie" Junior

Slickr Flickr Support

  • Get Support with Slickr Flickr Pro
  • Slickr Flickr Documentation
  • Slickr Flickr FAQ
  • Slickr Flickr Issues
  • Suggest Ideas
  • Flickr API and HTTPS

Gallery In Widget

New To Flickr and are missing photos?

Just a reminder that for new Flickr accounts it takes 3-5 working days after you upload your fifth photo before you photos are made available by Flickr for searches and also to Slickr Flickr.

For more information see the discussion of the new Flickr account rules on the Flickr forum.

Check the status of your Flickr account by logging in to Flickr and then visiting at http://www.flickr.com/account/

Recent Posts

  • Slickr Flickr 2.8 Release
  • Slickr Flickr 2.7 Release
  • Slickr Flickr 2.6 Release
  • Slickr Flickr 2.5 Release
  • Flickr Search By Text

Recent Comments

  • MK on Slickr Flickr 2.8 Release
  • Russell on How To Display a Flickr Photoset?
  • Russell on Where do I find my Flickr ID

Tags

customizations Flickr API flickr gallery flickr photo gallery Flickr RSS flickr slideshow flickr tutorial galleria lightbox missing latest photos Newsfeed Photo Descriptions Photoset plugin conflict Portrait sorting photos tagged phots thumbnail
  • Contact
  • Donate
  • Slickr Flickr v2.7
Copyright © 2009-2025 DIYWebmastery
PO Box 85 · Hatherleigh · Okehampton · Devon · EX20 4WH · UK
  • Share
  • +1
  • Share
  • Pin It
  • Buffer
  • 0