Coder Social home page Coder Social logo

tinypic_gradle_plugin's Introduction

TinyPIC Gradle Plugin

Read this in other languages: 简体中文.

UpdateInfo

1.1.4

add two new properties:
//if skpi the task
skip = true/false 
//if print log 
isShowLog = true/false

1.1.3.1

rename packagename ,delete redundant code

1.1.3

add new logic: if the save size is 0B,won't print message into tiny_compressed_list.txt

1.1.2

add new statistics: all times total save size

Dear,Do you still tiny your pic manually? tinyPIC is a gradle plugin which can tiny batch pics auto in your res directory.

Usage of tinyPIC:


add below code in the outer build.gradle file(which is in the same directory of settings.gradle)

classpath 'com.mogujie.gradle:tinyPicPlugin:1.1.4'

add below code in the inner build.gradle file(which is in the same directory of src)

apply plugin: 'tinyPIC'

tinyinfo {
            apiKey = 'your tiny API key'
            //if skpi the task
            skip = true/false 
            //if print log 
            isShowLog = true/false
}

Get tiny API key


browse https://tinypng.com/developers and provide an email Tiny will give you an email with a link ,open the link you will see your API KEY on the left ,and the amount of you this month tinyAPI will give every key 500 free limited to compressed pic success.

tinyPIC have a tinypic_compressed_list.txt file to record the pic we successed compressed, next time tinyPIC will pass the pic to save your amount. tinyPIC also have a tinypic_white_list.txt file,if the pic doesn't look good after tiny ,you can revert it and add it's name in the file , so next time tinyPIC will ignore it. OK,have a try and have fun!!!

Licence


TinyPIC is licensed under the MIT license

tinypic_gradle_plugin's People

Contributors

crashhunter avatar

Watchers

 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.