{"id":1730,"date":"2024-06-21T12:24:07","date_gmt":"2024-06-21T12:24:07","guid":{"rendered":"https:\/\/piwigo.com\/blog\/?p=1730"},"modified":"2024-06-21T12:26:09","modified_gmt":"2024-06-21T12:26:09","slug":"smart-albums-automate-the-classification-of-your-photos-in-piwigo","status":"publish","type":"post","link":"https:\/\/piwigo.com\/blog\/2024\/06\/21\/smart-albums-automate-the-classification-of-your-photos-in-piwigo\/","title":{"rendered":"Smart Albums: Automate the classification of your photos in Piwigo"},"content":{"rendered":"\n<p><strong>The Smart Albums plugin has recently been launched on piwigo.com. Its purpose: to make it easier for you to organize your photo library with smart albums, automatically fed according to predefined rules. How does it work? We&#8217;ll take a look in this article.<\/strong><\/p>\n\n\n\n<!--more-->\n\n\n\n<p><h2>Smart Albums: a Piwigo plugin for creating automatic albums<\/h2><p>As you may know, albums in Piwigo structure both the navigation of your photo library and the visibility of content for users. Albums can be public or private, and when they are private, they can be visible to some users and not others.<\/p><p>When you land on your Piwigo gallery, the first thing you see are the albums, which may themselves contain sub-albums.<\/p><\/p>\n\n\n\n<p><p>Have a look a the example of the <a href=\"https:\/\/tourismelot.piwigo.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Phototh\u00e8que touristique du Lot<\/a>, a Piwigo customer.<\/p><\/p>\n\n\n\n<p><p>On the home page, you&#8217;ll find three public albums, one of which contains all the royalty-free photos available to the public. In this album, you&#8217;ll find thematic sub-albums: by season, by theme\u2026<\/p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"584\" src=\"https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-1024x584.png\" alt=\"\" class=\"wp-image-1733\" srcset=\"https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-1024x584.png 1024w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-300x171.png 300w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-768x438.png 768w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-1536x876.png 1536w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-1200x684.png 1200w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-1400x798.png 1400w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image.png 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><br><\/p>\n\n\n\n<p>One of the challenges faced by Piwigo administrators is how to continuously feed albums created in the past. If I&#8217;ve created a &#8220;Canoe&#8221; album at a given moment, I may want all photos added in the future and related to canoeing to be visible in this album, even if they&#8217;re added to another album.<\/p>\n\n\n\n<p>The Smart Albums plugin is one way of meeting this need. For example, it can be used to create a rule that automatically adds all photos associated with the tag &#8220;canoe-kayak&#8221; to the &#8220;Canoe&#8221; album.<\/p>\n\n\n\n<p>You can also create rules that automatically add photos to albums according to the date they were created, or the photo&#8217;s author\u2026<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Smart Albums: How does it work?<\/h2>\n\n\n\n<p>Smart Albums is a plugin for Piwigo. It is available for Enterprise and VIP customers. However, if you host your own Piwigo, you can install it free of charge.<\/p>\n\n\n\n<p>Once the plugin has been activated, you can configure Smart Albums.<\/p>\n\n\n\n<p>Smart Albums must be created in the plugin configuration, but will then be visible in the album list.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"628\" src=\"https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-1-1024x628.png\" alt=\"\" class=\"wp-image-1734\" style=\"width:740px;height:auto\" srcset=\"https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-1-1024x628.png 1024w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-1-300x184.png 300w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-1-768x471.png 768w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-1-1536x942.png 1536w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-1-1200x736.png 1200w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-1-1400x859.png 1400w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-1.png 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>Once you&#8217;ve created a Smart Album, you can define the rules that determine its content. To do this, you&#8217;ll create filters that can be based on different criteria:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Tags<\/li>\n\n\n\n<li>Date (import date or creation date)<\/li>\n\n\n\n<li>Photo name<\/li>\n\n\n\n<li>Album already associated<\/li>\n\n\n\n<li>Dimensions<\/li>\n\n\n\n<li>Author<\/li>\n\n\n\n<li>Hits<\/li>\n\n\n\n<li>Rating score<\/li>\n\n\n\n<li>Privacy level<\/li>\n\n\n\n<li>Max number of photos<\/li>\n<\/ul>\n\n\n\n<p>Filters can be combined with &#8220;AND&#8221; or &#8220;OR&#8221;.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can create a &#8220;United Kingdom&#8221; album that automatically contains all photos added to the &#8220;England&#8221; OR &#8220;Northern Ireland&#8221; OR &#8220;Scotland&#8221; OR &#8220;Wales&#8221; albums;<\/li>\n\n\n\n<li>You can create a \u201cSurf 2024\u201d album that automatically contains all photos associated with the tag &#8220;surf&#8221; AND whose creation date is between January 1 and December 31, 2024.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"255\" src=\"https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-2-1024x255.png\" alt=\"\" class=\"wp-image-1735\" srcset=\"https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-2-1024x255.png 1024w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-2-300x75.png 300w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-2-768x191.png 768w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-2-1536x382.png 1536w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-2-1200x299.png 1200w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-2-1400x349.png 1400w, https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/image-2.png 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>In the plugin&#8217;s configuration, you can define the frequency at which Smart Albums are updated: this can be, for example, every day, every week&#8230; You can also choose to update them after each new file is added: in this way, they&#8217;ll be refreshed &#8220;in real time&#8221;. But beware: this may cause slowdowns on some photo libraries.<\/p>\n\n\n\n<p><strong>So, what do you think? Did you know about this plugin? Would you find it useful?<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Discover Smart Albums, a plugin that lets you create albums that are automatically populated according to predefined rules.<\/p>\n","protected":false},"author":2,"featured_media":1736,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"none","_seopress_titles_title":"Smart Album plugin: Automatically organize your photos in Piwigo","_seopress_titles_desc":"Discover Smart Albums, a Piwigo plugin that lets you create albums that are automatically populated according to predefined rules.","_seopress_robots_index":"","advgb_blocks_editor_width":"","advgb_blocks_columns_visual_guide":"","_s2mail":"","footnotes":""},"categories":[41],"tags":[66,7],"class_list":{"0":"post-1730","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-news","8":"tag-albums","9":"tag-plugin","11":"with-featured-image"},"author_meta":{"display_name":"Claire Michard","author_link":"https:\/\/piwigo.com\/blog\/author\/claire\/"},"featured_img":"https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/Smart-Album-300x190.png","featured_image_src":"https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/Smart-Album.png","featured_image_src_square":"https:\/\/piwigo.com\/blog\/wp-content\/uploads\/2024\/06\/Smart-Album.png","author_info":{"display_name":"Claire Michard","author_link":"https:\/\/piwigo.com\/blog\/author\/claire\/"},"coauthors":[],"tax_additional":{"categories":{"linked":["<a href=\"https:\/\/piwigo.com\/blog\/category\/news\/\" class=\"advgb-post-tax-term\">News and updates<\/a>"],"unlinked":["<span class=\"advgb-post-tax-term\">News and updates<\/span>"]},"tags":{"linked":["<a href=\"https:\/\/piwigo.com\/blog\/category\/news\/\" class=\"advgb-post-tax-term\">albums<\/a>","<a href=\"https:\/\/piwigo.com\/blog\/category\/news\/\" class=\"advgb-post-tax-term\">Plugin<\/a>"],"unlinked":["<span class=\"advgb-post-tax-term\">albums<\/span>","<span class=\"advgb-post-tax-term\">Plugin<\/span>"]}},"comment_count":"2","relative_dates":{"created":"Posted 2 years ago","modified":"Updated 2 years ago"},"absolute_dates":{"created":"Posted on June 21, 2024","modified":"Updated on June 21, 2024"},"absolute_dates_time":{"created":"Posted on June 21, 2024 12:24 pm","modified":"Updated on June 21, 2024 12:26 pm"},"featured_img_caption":"","series_order":"","_links":{"self":[{"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/posts\/1730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/comments?post=1730"}],"version-history":[{"count":3,"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/posts\/1730\/revisions"}],"predecessor-version":[{"id":1739,"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/posts\/1730\/revisions\/1739"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/media\/1736"}],"wp:attachment":[{"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/media?parent=1730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/categories?post=1730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/piwigo.com\/blog\/wp-json\/wp\/v2\/tags?post=1730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}