主要是方便自己平时开发使用,在 IDE 里快速调用 tinipng ( tinyjpg )压缩图片
快速压缩图片的 Intellij 插件
压缩功能由 TinyPng 网站提供 https://tinypng.com/ powerd by tinify-java
网站 web 端一次只能上传 20 张图片,手动操作需要重复上传下载解压。
申请 Api Key
在开发者页面 tinypng 申请 api key。
单个 api key 每月有 500 次的免费压缩额度,增加额度需要另外付费。
安装 & 使用
Install
-
本地安装,点击这里 下载
-
在线安装,搜索
tinify可以看到查询结果Tinify Picture
Usage
-
安装完后重启,第一次使用会提示设置 Api Key
-
输入在 developers 申请的 api key
-
选择图片(可 多选,接受
pngjpg文件类型),自动上传压缩保存(覆盖) -
快速操作
可在图片编辑器右键菜单、项目文件 及 版本控制面板的Local Changes视图中
文件右键菜单选择 "Tinify image file" 直接压缩图片
TODO
- [x] 增加压缩耗时 /大小信息统计
- [ ] 备份原图
- [ ] 批量压缩图片记住上次选择路径
LICENSE
Copyright 2018 alvince Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 