V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
alvince
V2EX  ›  开源软件

TinyPNG IntelliJ(IDEA / Android Studio 等)插件

  •  
  •   alvince · 2018-08-16 11:13:01 +08:00 · 3201 次点击
    这是一个创建于 2052 天前的主题,其中的信息可能已经有所发展或是发生改变。

    主要是方便自己平时开发使用,在 IDE 里快速调用 tinipng ( tinyjpg )压缩图片

    GitHub - Tinify Picture

    IntelliJ Plugins

    快速压缩图片的 Intellij 插件

    压缩功能由 TinyPng 网站提供 https://tinypng.com/ —— powerd by tinify-java

    网站 web 端一次只能上传 20 张图片,手动操作需要重复上传下载解压。

    申请 Api Key

    在开发者页面 tinypng 申请 api key。
    单个 api key 每月有 500 次的免费压缩额度,增加额度需要另外付费。

    安装 & 使用

    Install

    • 本地安装,点击这里️ 👉 下载

    • 在线安装,搜索 tinify 可以看到查询结果 Tinify Picture

    Usage

    1. 安装完后重启,第一次使用会提示设置 Api Key

    2. 输入在 developers 申请的 api key

    3. 选择图片(可 多选,接受 png jpg 文件类型),自动上传压缩保存(覆盖)

    4. 快速操作
      可在图片编辑器右键菜单、项目文件 及 版本控制面板的 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.
    
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5337 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 09:03 · PVG 17:03 · LAX 02:03 · JFK 05:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.