大材小用?
Friday, January 15, 2010
話說,由於腦內的相片及圖片數量多於恆「海」沙數,為了找圖,除了偉大的Finder Spotlight外,幾乎沒有更仔細的search辦法(以end user來說…)
而市面上似乎有相關的software,以知名的Adobe為例,它出品的Bridge,印象中只可以根據photo 的dimensions來search,但由於是GUI的關係,加上又要做index,我正在尋找一個可以在terminal search的方法。
就在keyword「terminal find photo dimensions」,找到以下command
sips -g pixelWidth -g pixelHeight *.jpg
sips 的全寫是scriptable image processing system。功能大概看了一下也算強大…我只想要根據photo的width及height做searching條件,但目前我卻未想到下一步該怎樣做…
sips會將./ 中,利用-g來取得photo的Width及Height兩個值,而條件就是.jpg。sips似乎只有在BSD unix系列中有出現過…
問題就是,當找到這些結果後,怎樣只show出我想要指定的width及height值呢?嗯…
For reference:
http://developer.apple.com/Mac/library/documentation/Darwin/Reference/ManPages/man1/sips.1.html
0 comments:
Subscribe to:
Post Comments (Atom)
