Image cropping library written with Jetpack Compose with other Composables such as ImageWithConstraints scales Bitmap

Overview

Compose Image Cropper

Image cropping library written with Jetpack Compose with other Composables such as ImageWithConstraints scales Bitmap it displays and returns position and bounds of Bitmap and ImageWithThumbnail to display thumbnail of the image on selected corner.

⚠️ Work in Progress

  • ImageWithConstraints displays ImageBitmaps as androidx.compose.foundation.Image but unlike Image, ImageWithConstraints returns ImageScope which contains width and height of drawing area(Canvas) in dp, and actual IntRect of Imagebitmap. This rectangle's bounds change depending on which section of the ImageBitmap is drawn. For instance, for 1000x1000px image with ContentScale.Crop IntRect can be such as IntRect(250,250,500,500). Using ImageWithConstraint building other Composables like ImageThumbnail that require area of drawing and actual bounds of ImageBİtmap that is drawn can be achieved easily.

  • ImageWithThumbnail shows zoomed thumbnail at top left or top right corner of the image that is being displayed

You might also like...
Customizable Android full screen image viewer for Fresco library supporting
Customizable Android full screen image viewer for Fresco library supporting "pinch to zoom" and "swipe to dismiss" gestures. Made by Stfalcon

This project is no longer supported. If you're able to switch from Fresco to any other library that works with the Android's ImageView, please migrate

Dali is an image blur library for Android. It contains several modules for static blurring, live blurring and animations.
Dali is an image blur library for Android. It contains several modules for static blurring, live blurring and animations.

Dali Dali is an image blur library for Android. It is easy to use, fast and extensible. Dali contains several modules for either static blurring, live

A small customizable library useful to handle an gallery image pick action built-in your app. :sunrise_over_mountains::stars:
A small customizable library useful to handle an gallery image pick action built-in your app. :sunrise_over_mountains::stars:

Louvre A small customizable image picker. Useful to handle an gallery image pick action built-in your app. *Images from Google Image Search Installati

An image resizing library for Android
An image resizing library for Android

Resizer Inspired by zetbaitsu's Compressor, Resizer is a lightweight and easy-to-use Android library for image scaling. It allows you to resize an ima

Simple android image popup Library
Simple android image popup Library

Android Image Popup Show image as a popup on a click event or any event. Simply set the image as drawable and thats it!!!. And also you can set width,

Library to save image locally and shows options to open and share !

Image Save and Share Library to save image locally and shows options to open and share ! Download Demo APK from HERE Kindly use the following links to

Image loading library for Android

Image Loader Image loader library for Android. Deprecated. See Glide. Features Image transformations Automatic memory and storage caching Ability to l

RoundedImageView-Library 0.9 0.0 Java To set single or multiple corners on Image Views.
RoundedImageView-Library 0.9 0.0 Java To set single or multiple corners on Image Views.

RoundedImageView-Library Rounded ImageView Android Library, to set single or multiple corners on imageview. Screenshot Usage Step 1. Add the JitPack r

An image loading library for android.

Bilder Download Add following to your project's build.gradle allprojects { repositories { ... maven { url 'https://jitpack.io' } } }

Releases(1.0.0-alpha08)
  • 1.0.0-alpha08(May 20, 2022)

    This version updates ImageWithThumbnail with state hoisting

    states and gestures are moved to parent composable and fix for gestures not working properly on Bitmap, size or ContentScale change by restarting pointerMotionEvents when these params change

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-alpha07(May 17, 2022)

  • 1.0.0-alpha06(May 16, 2022)

  • 1.0.0-alpha05(May 14, 2022)

    This version changes how ImageWithThumbnail remembers image to create one when ContentScale, Canvas dimensions, ImageBitmap or cropping rectangle changes

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-alpha03(May 10, 2022)

    This version adds drawImage flag to ImageWithConstraints to not draw but only to calculate bounds after scaling and ImageWithThumbnail passes it's dimensions to its children.

    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-alpha02(May 8, 2022)

  • 1.0.0-alpha01(May 7, 2022)

Owner
Smart Tool Factory
Developer From Thrace fueled with 🍺 ☕️ and 🤘
Smart Tool Factory
A simple image cropping library for Android.

SimpleCropView The SimpleCropView is an image cropping library for Android. It simplifies your code for cropping image and provides an easily customiz

Issei Aoki 2.5k Dec 28, 2022
Image Cropping Library for Android, optimised for Camera / Gallery.

Image Cropping Library for Android, optimised for Camera / Gallery.

CanHub 812 Dec 30, 2022
Image Cropping Library for Android

Image Cropping Library for Android

Lyrebird Studio 1.1k Dec 30, 2022
Android widget for cropping and rotating an image.

Cropper The Cropper is an image cropping tool. It provides a way to set an image in XML and programmatically, and displays a resizable crop window on

Edmodo 2.9k Nov 14, 2022
Awesome Image Picker library will pick images/gifs with beautiful interface. Supports image or gif, Single and Multiple Image selection.

Awesome Image Picker Awesome Image Picker library will pick images/gifs with beautiful interface. Supports image or gif, Single and Multiple Image sel

Prabhakar Thota 162 Sep 13, 2022
Android library project for cropping images

I guess people are just cropping out all the sadness An Android library project that provides a simple image cropping Activity, based on code from AOS

Jamie McDonald 4.5k Jan 7, 2023
A library for image manipulation with power of renderScript which is faster than other ordinary solutions.

Pixl is a library for image manipulation with power of renderScript which is faster than other ordinary solutions, currently it includes three basic scripts, brightness, contrast, saturation.

Jibran Iqbal 20 Jan 23, 2022
This is an Image slider with swipes, Here we used Volley to Image load URL's from JSON! Here we make it very easy way to load images from Internet and We customized the description font style(OpenSans).

ImageSliderWithSwipes This is an Image slider with swipes, Here we used Volley to load URL's from JSON! Here we make it very easy way to load images f

Prabhakar Thota 44 May 31, 2021
An image board client based on Gelbooru for android, made from Jetpack Compose 🚀 .

Mejiboard An image board client based on Gelbooru for android, made from Jetpack Compose ?? . Features Material Design UI Easy one-handed operation Li

Agung Watanabe 59 Dec 30, 2022
An android image compression library.

Compressor Compressor is a lightweight and powerful android image compression library. Compressor will allow you to compress large photos into smaller

Zetra 6.7k Dec 31, 2022