diff --git a/README.md b/README.md index 23f996f..5e47ba9 100644 --- a/README.md +++ b/README.md @@ -1,45 +1,30 @@ -https://github.com/shenjiajun53/TinyPic 喜欢请给个star - -http://www.jianshu.com/p/5f2e1b400bb8 这里是简书上的Blog,写的代码过程 - # TinyPic -## 一个Intellij的插件 -功能:压缩图片资源,一次最多压缩500张 -压缩的核心功能是TinyPng这个网站提供的 +## 快速压缩图片的 Intellij 插件 +压缩功能由TinyPng网站提供 https://tinypng.com/ -https://tinypng.com/ +![tinypng_homepage.png](./screenshots/tinypng_homepage.png "TinyPng") 但是这个网站一次只能上传20张图片,所以你需要上传下载,上传下载重复工作。 -好在这个网站提供了api可以压缩图片。 -在开发者页面下申请api key。对于一个key,每月有500次的免费压缩额度,如果压缩超过了 -500张图片,就不能使用了。需要另外付费。但是申请这个api特别简单,填下邮箱,用户名就行,多申请 -两个邮箱。1000张图片也妥妥够了。 -这里推荐google个十分钟邮箱,不需要注册,只能使用十分钟,用来收一下验证码很方便 +#### 申请 Api Key +>在开发者页面下申请api key。 +对于一个key,每月有500次的免费压缩额度,如果压缩超过了500张图片,就不能使用了。增加额度需要另外付费。 +但是申请这个api特别简单,填下邮箱,用户名就行,多申请两个邮箱。1000张图片也妥妥够了。 -![webstorm.png](./screenshots/tinypng_develop.png) +![tinypng_develop.png](./screenshots/tinypng_develop.png "TinyPng") -## 使用方式 +## 安装 & 使用 -1.在File->Settings->Plugins里下载插件 TinyPic +1.在File->Settings->Plugins里安装,点击这里➡️[下载](http://osc7hu59y.bkt.clouddn.com/archives/GitHub/releases/tinypicTinyPic2-1.0.0.zip "v1.0.0") -2.安装完后重启,在Tools目录下找到TinyPic +2.安装完后重启,第一次使用会提示设置 Api Key -![webstorm.png](./screenshots/location.png) +![notification.png](http://osc7hu59y.bkt.clouddn.com/image/GitHub/art/tinypic/notification.png "Notification") 3.输入在 https://tinypng.com/developers 申请的api key -![webstorm.png](./screenshots/input_key.png) - -4.选择图片,可以选择图片,或者选择文件夹或者同时选中,反正是遍历文件夹下的图片,筛选jpg和png -,key的剩余次数 - -![webstorm.png](./screenshots/select_images.png) - -5.压缩进度 - -![webstorm.png](./screenshots/progress.png) +![settings.png](http://osc7hu59y.bkt.clouddn.com/image/GitHub/art/tinypic/settings.png "Settings") -6.超过500次的提示(后续会考虑加入 生成压缩的信息的文件,因为大家都用git,其实也不是很必要) +4.选择图片(多选,只接受 `png` `jpg`),完成图片压缩 -![webstorm.png](./screenshots/warning.png) +![select_images.png](./screenshots/select_images.png "Pick Images") diff --git a/screenshots/input_key.png b/screenshots/input_key.png deleted file mode 100644 index 3399fcb..0000000 Binary files a/screenshots/input_key.png and /dev/null differ diff --git a/screenshots/location.png b/screenshots/location.png deleted file mode 100644 index 1c91afd..0000000 Binary files a/screenshots/location.png and /dev/null differ diff --git a/screenshots/progress.png b/screenshots/progress.png deleted file mode 100644 index 0e1dcd2..0000000 Binary files a/screenshots/progress.png and /dev/null differ diff --git a/screenshots/select_images.png b/screenshots/select_images.png index 96d91dc..8859270 100644 Binary files a/screenshots/select_images.png and b/screenshots/select_images.png differ diff --git a/screenshots/tinypng_develop.png b/screenshots/tinypng_develop.png index a7d1dd0..0624a40 100644 Binary files a/screenshots/tinypng_develop.png and b/screenshots/tinypng_develop.png differ diff --git a/screenshots/tinypng_homepage.png b/screenshots/tinypng_homepage.png index 5811d5a..c2f4aff 100644 Binary files a/screenshots/tinypng_homepage.png and b/screenshots/tinypng_homepage.png differ diff --git a/screenshots/warning.png b/screenshots/warning.png deleted file mode 100644 index 5583755..0000000 Binary files a/screenshots/warning.png and /dev/null differ