Code Monkey home page Code Monkey logo

Comments (7)

SmartToolFactory avatar SmartToolFactory commented on June 18, 2024

Do you get this error when you select an image with picker?

from compose-cropper.

strangerweather avatar strangerweather commented on June 18, 2024

Do you get this error when you select an image with picker?

Hmm, I guess I don't understand how it works. Is there a wiki or some instructions?
Thanks again.

from compose-cropper.

SmartToolFactory avatar SmartToolFactory commented on June 18, 2024

There are no wiki file or instructions. I will add instructions soon. When do you get that exception?

from compose-cropper.

strangerweather avatar strangerweather commented on June 18, 2024

Basically, I'm not sure where in the ImageCropDemoSimple Composable my picked image goes. I thought it was here:

ImageCropper( modifier = Modifier .fillMaxWidth() .weight(1f), imageBitmap = imageBitmap, contentDescription = "Image Cropper", cropStyle = cropStyle, cropProperties = cropProperties, crop = crop, onCropStart = {} ) { pickedImage }

But when I run the code I get the exception I mentioned...

from compose-cropper.

SmartToolFactory avatar SmartToolFactory commented on June 18, 2024

So you run ImageCropDemoSimple and it crashes immediately, right? what's your screen resolution? I will re-write ImageWithConstraints since i need dimensions of Composable and draw area. It returns constraints which are not valid under every condition.

from compose-cropper.

strangerweather avatar strangerweather commented on June 18, 2024

Hi, yes, that's exactly it.
I tried using the Pixel 4a emulator (1080x2340).
I also tried on my Pixel 7 Pro (1440x3120).
Thanks!

from compose-cropper.

baza-trainee avatar baza-trainee commented on June 18, 2024

image

also got this error when trying to save cropped image.

BTW, in one screen it works fine, in another FC's.

from compose-cropper.

Related Issues (20)

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.