一、Mac shell命令
单张/批量修改图片尺寸
1 | sips -Z 640 *.jpg //批量 604*640 |
More From:http://www.ainotenshi.org/818/resizing-images-using-the-command-line
图片格式转换
单张图片
1 | sips -s format [image type] [file name] --out [output file] |
批量转换,转换到当前目录中的一个新的Converted子文件夹
1 | for i in [filename]; do sips -s format [image type] $i --out [destination]/$i.[extension];done |
Mac应用
https://medium.com/@yeong.crypto/optimizing-converting-images-8d10ae559586
https://www.cnblogs.com/lhb25/p/12-best-image-compression-tools.html
2、在线压缩
TinyPNG https://tinypng.com/ 【荐】
http://isparta.github.io/index.html
GIF压缩
soogif http://www.soogif.com/compress
https://shortpixel.com/online-image-compression
https://github.com/leecade/imagine
http://imgonline.com.ua/eng/compress-image.php
Image Compression tools via command line
jpegoptim – the compression tool extraordinaire
http://www.creativebloq.com/design/image-compression-tools-1132865
Efficient Image Resizing With ImageMagick
图片无损压缩工具都有哪些?【知乎】
开源工具