Giter Site home page Giter Site logo

camerakit / jpegkit-android Goto Github PK

View Code? Open in Web Editor NEW
163.0 163.0 33.0 3.61 MB

Efficient JPEG operations for Android without the risk of an OutOfMemoryException.

Home Page: https://www.camerakit.website/jpegkit

License: MIT License

Java 16.14% CMake 0.23% C++ 34.42% C 47.36% Kotlin 1.85%
android jni jpeg jpg libjpeg-turbo native ndk turbojpeg

jpegkit-android's People

Contributors

austinkettner avatar dwillmc avatar emersoncloud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jpegkit-android's Issues

Cropping by less than 16 px on left/top crops on right/bottom instead.

As said in the title, cropping by less than 16 px on left/top crops on right/bottom instead. This can be observed in the demo app as well, probably easiest with a smaller image (thumbnail size, so roughly 160x120) so that each pixel is larger (and setting the imageView to fitCenter to enlarge the displayed image for the same reason).

Readme is incorrect or unclear about how to get metadata

Description of getting Width/Height from a JPEG are listed as:

MetaData

You can currently retrieve a JPEGs width and height. This only decodes the JPEGs header information and is very fast.

int width = jpegTransformer.getWidth();
int height = jpegTransformer.getHeight();

These methods exist on the jpegkit.Jpeg class, not the jpegkit.JpegTransformer. I'm not sure if that's an oversight in the intended implementation of JpegTransformer, or if the readme should be describing how to get metadata from a Jpeg object.

Edit: I just realized that there are other bits that seem to refer to the wrong class:

jpegTransformer.crop(cropRect);

JpegTransformer class has cropWithOffsets(...) and cropWithRegion(...) methods. Jpeg class has the crop(Rect) method.

Yuv data

If i had a yuv image, is possibile to use this library to do crop and rotate actions?

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.