Coder Social home page Coder Social logo

f5android's Introduction

f5android's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

f5android's Issues

System.loadLibrary("f5buffers")

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.vipin.myfirstapp-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.vipin.myfirstapp-2/lib/arm64, /system/fake-libs64, /data/app/com.example.vipin.myfirstapp-2/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]] couldn't find "libF5Buffers.so"

Fix output filename tagging with "_embed.jpg" taking 1 char from original name

Right now if no output filename is provided, F5Android library defaults to replacing the original extension by "_embed.jpg" but while doing so, it also messes up last char of original name. Example:
IMG_0001.jpg becomes IMG_000_embed.jpg (last 1 is accidentally chopped)

Fix:
Please change line 60 of Embed.java into
String extension = this.file.getName().substring(this.file.getName().lastIndexOf(".") );

Thanks.

Divide by 0 when image is fully black

Accidentally the leather cover was over the camera lens, so the image was fully black, and the embedding process ended up throwing an exception:

D/***************** JPEG-STEGO ******************(17749): Embedding of 1432 bits (175+4 bytes) 
D/***************** JPEG-STEGO ******************(17749): using default code, file will not fit
D/***************** JPEG-STEGO ******************(17749): 4 coefficients examined
E/***************** JPEG-STEGO ******************(17749): java.lang.ArithmeticException: divide by zero
W/System.err(17749): java.lang.ArithmeticException: divide by zero
W/System.err(17749):    at james.JpegEncoder.WriteCompressedData(JpegEncoder.java:577)
W/System.err(17749):    at james.JpegEncoder.Compress(JpegEncoder.java:93)
W/System.err(17749):    at james.JpegEncoder.Compress(JpegEncoder.java:113)
W/System.err(17749):    at info.guardianproject.f5android.Embed.<init>(Embed.java:84)
W/System.err(17749):    at info.guardianproject.f5android.Embed.<init>(Embed.java:41)
W/System.err(17749):    at com.mayorante.ztegocam.F5Embedder.doF5(F5Embedder.java:79)
W/System.err(17749):    at com.mayorante.ztegocam.F5Embedder.embed(F5Embedder.java:63)
W/System.err(17749):    at dalvik.system.NativeStart.run(Native Method)

It could be much simpler

If this is a porting of the original f5 java library referenced in the readme, then it is unnecessarily convoluted and the efficiency isn't as good (i.e. output size). It could be much simpler.

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.