How do I search for square images in Lion?
I can't work out how to search for images where the image's width is equal to the height. This is regardless of the actual number of pixels.
Any tips would be appreciated?
I can't work out how to search for images where the image's width is equal to the height. This is regardless of the actual number of pixels.
Any tips would be appreciated?
OSX does not to my knowledge offer that capability natively. There might exist an App that offers that capability; I would stop by the Apple App Store and search.
Hope this helps 🙂
Hello,
Maybe there's a plugin for Spolight but didn't find one after a quick search.
I would suggest to do like this :
- You can create a smart folder and you can to modify the with and height for each search.
To create it :
And for information if you save that folder in your sidebar and when on you click on it you don't see the search criteria just do a right-click on the folder and select Show Search Criteria in the menu that appears. Like my picture :
i have about 5000 images,60% are square and sizes vary from 500px to 3500px
i'll send you the images to do those searches ;-)
i'll search the app store and for plug ins, thanks
Michael
MichaelToye you can follow my exemple and it will work. It takes 5 minutes to set up that smart folder.
am i mis interpretting what you are saying, because it sounds like setting up a smart folder and then searching for ...
Search : JPG+Width=500+Height=500
Search : JPG+Width=501+Height=501
Search : JPG+Width=502+Height=502
that's not going to happen!
Well, I solved this by writing an Applescript to rename square images with a searchable suffix.
try
tell application "Finder" to set the this_folder to (folder of the front window) as alias
on error
set the this_folder to path to desktop folder as alias
end try
tell application "Finder"
set selected_items to selection
set oldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to ":"
repeat with aFile in selected_items
set img_ to quoted form of POSIX path of (aFile as text)
if the name extension of aFile is "JPG" then
set my_dimensions to (do shell script " sips -g pixelWidth " & img_)
set width_ to text item 2 of my_dimensions
set my_dimensions to (do shell script " sips -g pixelHeight " & img_)
set height_ to text item 2 of my_dimensions
if (width_ = height_) then
do shell script "mv " & img_ & " " & img_ & ".SQ.JPG"
end if
end if
end repeat
set AppleScript's text item delimiters to oldDelims
end tell
How do I search for square images in Lion?