← 返回
内容创作 中文

Local Image Search

Fast local image search using macOS Spotlight or fd. Search images by name, date, location, or metadata. Use when users need to find images on their local ma...
使用 macOS Spotlight 或 fd 进行快速的本地图片搜索,可按名称、日期、地点或元数据查找图片,适用于用户在本地机器上查找图片的场景。
zhaomenghuan
内容创作 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 623
下载
💾 21
安装
1
版本
#latest

概述

Local Image Search

Search local images quickly using macOS Spotlight or fd.

Quick Start

Search by Name

# Using fd (fastest)
fd -e jpg -e png -e jpeg -e heic -e webp -e gif -e tiff "pattern" /path/to/search

# Using Spotlight
mdfind -onlyin /path/to/search "kMDItemDisplayName == '*pattern*'"

Search by Date

# Today
mdfind -onlyin ~/Pictures "kMDItemContentTypeTree == 'public.image' && kMDItemFSContentChangeDate > $time.today()"

# Last 7 days
mdfind -onlyin ~/Pictures "kMDItemContentTypeTree == 'public.image' && kMDItemFSContentChangeDate > $time.now(-604800)"

# This month
mdfind -onlyin ~/Pictures "kMDItemContentTypeTree == 'public.image' && kMDItemFSContentChangeDate > $time.this_month()"

Search by Location (GPS)

# Has GPS coordinates
mdfind "kMDItemContentTypeTree == 'public.image' && kMDItemGPSStatus == 'GPS'"

# In specific area (approximate)
mdfind "kMDItemContentTypeTree == 'public.image' && kMDItemGPSLatitude > 39 && kMDItemGPSLatitude < 41"

List All Images

# All images in home
mdfind "kMDItemContentTypeTree == 'public.image'"

# Specific directory only
mdfind -onlyin ~/Pictures "kMDItemContentTypeTree == 'public.image'"

# Specific types only
mdfind -onlyin ~/Pictures "kMDItemContentType == 'public.png'"

Available Scripts

Basic Search

  • scripts/search_by_name.sh - Search images by filename pattern
  • scripts/search_by_date.sh - Search by creation/modification date
  • scripts/list_all.sh - List all images in a directory

Advanced Search

  • scripts/search_by_location.sh - Search by GPS coordinates
  • scripts/search_by_size.sh - Search by image dimensions
  • scripts/search_similar.sh - Find visually similar images (requires perceptual hash)

Utility

  • scripts/thumbnail.sh - Generate thumbnails for results
  • scripts/copy_results.sh - Copy search results to destination

Image Types Supported

ExtensionType
-----------------
jpg/jpegJPEG images
pngPNG images
heiciPhone photos
webpWebP images
gifGIF images
tiffTIFF images
rawRAW camera files
dngDigital negatives

Metadata Search Keys

KeyDescription
------------------
kMDItemDisplayNameFilename
kMDItemFSContentChangeDateModification date
kMDItemContentCreationDateCreation date
kMDItemPixelWidthImage width
kMDItemPixelHeightImage height
kMDItemGPSLatitudeGPS latitude
kMDItemGPSLongitudeGPS longitude
kMDItemMakeCamera make
kMDItemModelCamera model

Examples

# Find all screenshots
./scripts/search_by_name.sh "Screen Shot" ~/Desktop

# Find photos from today
./scripts/search_by_date.sh today ~/Pictures

# Find iPhone photos
./scripts/search_by_name.sh "IMG_" ~/Pictures

# Copy results to folder
./scripts/search_by_date.sh today ~/Pictures | ./scripts/copy_results.sh ~/Desktop/today_photos

Requirements

  • macOS (uses Spotlight/mdfind)
  • fd (optional, for faster filename search): brew install fd
  • exiftool (optional, for advanced metadata): brew install exiftool

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 04:36 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 294 📥 136,382
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,148
content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 141 📥 41,002