Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
alvince committed Aug 8, 2017
2 parents 7e552ec + ca203ee commit ba5f5a8
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 30 deletions.
45 changes: 15 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -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")
Binary file removed screenshots/input_key.png
Binary file not shown.
Binary file removed screenshots/location.png
Binary file not shown.
Binary file removed screenshots/progress.png
Binary file not shown.
Binary file modified screenshots/select_images.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/tinypng_develop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/tinypng_homepage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed screenshots/warning.png
Binary file not shown.

0 comments on commit ba5f5a8

Please sign in to comment.