Coder Social home page Coder Social logo

xice7-imagekit's Introduction

xice7-imageKit

概述

xice7-imageKit是基于java语言实现的简单的图片处理工具。 使用简单, API采用易用的管道流设计。 工程很小,且不依赖第三方Jar文件。

支持多种图片效果处理,如:

  • 图片压缩 -支持各种类型的图片压缩,可设置压缩比率
  • 等比(也支持不等比)缩放 - 支持缩小及放大
  • 旋转效果 -支持任意角度的旋转
  • 像素化 -马赛克效果,你懂得
  • 灰度处理
  • 去色处理 -黑白效果
  • 图片剪切 - 支持矩形剪切和圆形剪切(圆形剪切后为Png透明效果)
  • 老照片效果 -泛黄的照片效果
  • 对 色调,对比度,亮度 控制

集成Base64编码,实现Base64字符串和图片之间互转,方便在做移动端API使用

1分钟教程

读取图片(API提供多种形式读取图片,演示使用文件读取):

File file = new File("test.png");
ImageKit kit = ImageKit.read(file);

处理图片:

kit.cropCircle(); // 剪切圆形图片

保存剪切后的图片(API支持多种形式写入,演示使用文件写入):

kit.transferTo("result.png"); 

预览结果

图片

Ok,演示结束啦……

怎么样是不是很简单

JDK要求

jdk 1.6+

Tech

其他效果,参见 http://www.jhlabs.com/ip/filters/ 这个是歪果仁的实现的图片效果

Version

0.0.1

License

MIT

Free Software, Yeah!

xice7-imagekit's People

Contributors

m310851010 avatar dependabot[bot] 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.