Giter VIP home page Giter VIP logo

tinypng's Introduction

图片压缩软件

基于TinyPNG Api压缩软件,可安装直接运行,无需依赖任何第三方包及库。

日常开发经常会用到tinypng.org图片批量压缩,TinyPNG平均压缩率能达到60%,肉眼能观察到的画质损失微乎其微,对页面加载提速及体验、节省用户流量、缩小程序包有很大帮助。

项目图片过多时,通过官方网站压缩效率低、繁琐,于是最初用Go基于TinyPNG API写了个CLI程序,操作不是太方便,凭借对窗体软件的热爱和本着学习心态决定用C++写个GUI程序。

下载:

Download the installer for Windows>>
Download the installer for MacOS>>

Screenshots

MacOS版

配置

TinyPNG Key是免费的,为了安装后可以直接用,软件源码中已有2个Key,安装后会随机配置一个作为使用。每个Key每月免费压缩为500次,若不够可以自己多申请几个(申请很简单,填写邮箱和昵称,便会收到邮件,根据邮件中的链接进入创建key即可);
由于TinyPNG服务器在国外,国内访问较慢,如果你有国外代理可配置为其加速。
2021/08/11 新增免key模式,现在可以无需申请key。(原有的KEY模式同时保留)

Usage

There are two ways to add the files:
1.Click the button on the top-left to choose one or more files or a folder.
2.Recommended way, For more convenient and efficient, The software supports the object can be dragged directly into the area of table in the window.
3.push the button by a shortcut key associated with the button, For example: press Ctrl+O to add object, Ctrl+S to start task.
4.Double-Clicking the any row in the table, the picture associated with row will preview in system image previewer.
5.Either right-Clicking on the any rows or selecting rows and pressing key Del delete the rows.

Remark: If the object you gave is a folder,the sofeware will list automatically recursively all the image files in that folder.

Comparisons

以下是对电商项目的商品详情页图片压缩测试数据,无论是页面大小还是访问速度的提升都很显著
截图

免责声明

该仓库仅用于学习,如有商业用途,请购买官方的 pro 版:https://tinify.com/checkout/web-pro

This Repo is only for study.

tinypng's People

Contributors

yongplus avatar plexpt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.