Install
openclaw skills install image-compressionAutomatically compresses images exceeding Telegram's 10MB limit by resizing width, adjusting quality, and preserving the original file with a new name.
openclaw skills install image-compression自动检测图片大小,当图片超过 Telegram 发送限制(10MB)时自动压缩,确保图片能够成功发送。
sips 命令进行图片压缩sips 工具(系统自带)# 压缩图片(默认参数)
bash scripts/compress_image.sh "/path/to/image.png"
# 自定义宽度
bash scripts/compress_image.sh "/path/to/image.png" 800
# 自定义宽度和质量
bash scripts/compress_image.sh "/path/to/image.png" 800 80
# 发送压缩后的图片到微信文件传输助手
bash scripts/compress_and_send.sh "/path/to/image.png" "文件传输助手"
scripts/compress_image.sh:基本压缩功能scripts/compress_and_send.sh:压缩后发送到微信scripts/compress_and_send_telegram.sh:压缩后发送到 Telegram# 压缩并发送到微信
bash scripts/compress_and_send.sh "/Users/honcy/Desktop/screenshot_20260221_231100.png" "文件传输助手"
# 压缩并发送到 Telegram
bash scripts/compress_and_send_telegram.sh "/Users/honcy/Desktop/screenshot_20260221_231100.png" 5578370460