Giter VIP home page Giter VIP logo

magick4j's Introduction

说明

Magick4J是对ImageMagick 7.0 的JNI封装库,封装了ImageMagick大部分的接口。

#安装

依赖

  1. 安装jdk 11
  2. 安装ImageMagick 7, 从github下载7.1.0-32的代码,在编译安装之前需要先安装依赖库,ubuntu 下运行以下指令。然后编译安装 ImageMagick 7.
sudo apt install tcl-dev libpng-dev libjpeg-dev libgs-dev libbz2-dev libfreetype-dev libtiff-dev

安装过程如下:

 ./configure --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes
            --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes --disable-openmp
 make
 sudo make install
 

编译 Magick4J.so,基于cmake,因此需要实现安装cmake

jni 本身是c代码也需要编译安装。jni 工程下的jni文件夹,然后执行如下命令, 执行过程中需要输入sudo 密码。

    sh build.sh

最终Magick4J.so会被安装到/usr/local/lib下。

jar打包

调用mvn打包发布即可

magick4j's People

Contributors

rolandhe avatar

Stargazers

Yang Liu avatar

Watchers

James Cloos avatar  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.