![]() |
|
Image search by orientation ? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Image search by orientation ? (/thread-11365.html) |
Image search by orientation ? - underscore978 - 2013-09-20 I was wondering if there is a way to be able to search images based on orientation (horizontal or vertical images only) Image search by orientation ? - sbillard - 2013-09-20 Not unless this information is stored in metadata or maybe in the custom field of the image database entry. Search does not have expressions, only "contains" type matching. Image search by orientation ? - underscore978 - 2013-09-20 actually i was thinking something based on the images dimension width and height, which already are in the metadata.. Image search by orientation ? - acrylian - 2013-09-20 There are template functions available to check for landscape and you can do that via the object model. But as sbillard said it is not possible via the search itself. You would have to use the object model to note that somewhere via the custom field or even better a tag. Image search by orientation ? - sbillard - 2013-09-20 The current search engine does not handle expressions as I said above. However, if your images are uniform in size, say 600x800 you could search for "800" and enable the height field. That would return all images that are 800 high. If you images vary in size but have a small set of possibilities that do not overlap width with height values you can have multiple matches by using the OR function in the search. Otherwise what you want is not possible nor even very likely to be implementable withing the current structure. |