ANDROID-IMAGEMAGICK
I had originally archieved this repo. It is mostly outdated, but it appears no one is making their ImageMagick android ports open source so I've restored this one.
INTRODUCTION This Is a free to use,change and reproduce multi CPU-architecture port of ImageMagick on Android Platform, this repo provides you with the ".so" files necessary to perform android native processing using the Image Magick library version 6.7.3-0 on Android devices with Armeabi-v8a_64, Mips_64, x86_64, Armeabi, Armeabi-v7a, Intel x86 or Mips processor CPUs/ABIs.
It also provides the C/C++ code in the ImageMagick Library, its dependant libraries as well as the Android.mk files necessary for rebuilding using the Android Native Development Kit (NDK) within the android application,
ImageMagick methods are accessed by use of Jmagick included in the src folder, JMagick is an open source Java interface of ImageMagick. It is implemented in the form of a thin Java Native Interface (JNI) layer into the ImageMagick API. please take a look here http://sourceforge.net/projects/jmagick/ To see all features and learn how to use them please check out http://www.jmagick.org/jmagick-doc/
USAGE: For quick ImageMagick Usage in your android app, .....the following instructions are based on none-gradle build
- Simply copy the "libs" folder to your project folder
- Delete the CPU architecture folders of those CPU's architecure's you aren't targetting in the "libs" folder you've just copied.
- Go to "src" and copy "Magick" and "fakeawt", copy these to your "src" folder of your project
- Create a"jni" folder
- In the "jni" folder create an "Application.mk" file where you put "APP_ABI := <your_target_CPU_architecture>"" , this allows Google Play to know what CPU that particular APK targets
- Your basically done at this point, you can look at "AndroidMagickActivity.java" for basic Imagemagick usage you can copy to your own Activity.
REBUILD: If you want to rebuild with your own toolchain/compilers and what not or even maybe add other libraries e.g "Ghostscript" to support for PDF.
- Naviagate to "jni" and edit the "android.mk" file accordingly
- Also edit the "application.mk" file accordingly
- using your "Cygwin" or whatever you none Windows guys use, navigate to the project's "jni" folder and run "ndk-build"
- These .so files were generated using NDK r9d.