ndahlquist / pngquant-android Goto Github PK
View Code? Open in Web Editor NEWpngquant with basic Java bindings for Android.
License: Other
pngquant with basic Java bindings for Android.
License: Other
I encapsulated a cordova plugin base on your repo: https://github.com/CN-Tower/cordova-plugin-pngquant
But my outputfile is empty after run the nativePngQuantFile. Can you help me?
LogCat:
09-08 16:01:53.457 17558-17558/com.jcflash.android V/ActivityThread: >>> handling: ENABLE_JIT
09-08 16:01:53.457 17558-17558/com.jcflash.android V/ActivityThread: <<< done: ENABLE_JIT
09-08 16:02:05.945 17558-17558/com.jcflash.android D/SystemWebChromeClient: file:///android_asset/www/js/index.js: Line 36 : /9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABALDA4MChAODQ4SERATGCgaGBYW...
09-08 16:02:06.091 17558-17633/com.jcflash.android E/Input Filename: /storage/emulated/0/Android/data/com.jcflash.android/cache/temp1213492856png
09-08 16:02:06.092 17558-17633/com.jcflash.android E/Output Filename: /storage/emulated/0/Android/data/com.jcflash.android/cache/temp63894766png
09-08 16:02:06.092 17558-17633/com.jcflash.android I/LibPngQuantizer: /storage/emulated/0/Android/data/com.jcflash.android/cache/temp1213492856png:
09-08 16:02:06.093 17558-17633/com.jcflash.android E/Response Data: {"data":""}
09-08 16:02:06.093 17558-17633/com.jcflash.android W/PluginManager: THREAD WARNING: exec() call to PngQuant.compress blocked the main thread for 123ms. Plugin should use CordovaInterface.getThreadPool().
09-08 16:02:06.097 17558-17558/com.jcflash.android D/SystemWebChromeClient: file:///android_asset/www/js/index.js: Line 38 : [object Object]
09-08 16:02:06.097 17558-17558/com.jcflash.android I/chromium: [INFO:CONSOLE(38)] "[object Object]", source: file:///android_asset/www/js/index.js (38)
the log is:
make: *** No rule to make target jni/pngquant/rwpng.c', needed by
obj/local/arm64-v8a/objs/pngquant/pngquant/rwpng.o'. Stop.
make: *** Waiting for unfinished jobs....
[arm64-v8a] Compile : pngquantandroid <= native_glue.c
[arm64-v8a] Compile : pngquantandroid <= pngquant.c
jni/native_glue.c:8:19: fatal error: rwpng.h: No such file or directory
#include "rwpng.h"
^
compilation terminated.
make: *** [obj/local/arm64-v8a/objs/pngquantandroid/native_glue.o] Error 1
In file included from jni/pngquant.c:50:0:
jni/pngquant.h:4:69: fatal error: rwpng.h: No such file or directory
#include "rwpng.h" /* typedefs, common macros, public prototypes */
Hi-
Do you have a 64 bit version of the library built (arm64-v8a)?
Thanks,
Scot
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.