-
-
Notifications
You must be signed in to change notification settings - Fork 995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with image scaling #10
Comments
Thanks @siberianbearr for detail analysis. Can you suggest some idea/logic how to implement this by keeping |
hi @burhanrashid52 , you can check this repo https://github.com/siwangqishiq/ImageEditor-Android While the project is in chinese, some part of the demo contain english translations. |
hi @burhanrashid52 i've done some quick combination between your project and https://github.com/siwangqishiq/ImageEditor-Android so that i can save a big resolution image with stickers. Check it out at: |
This seems like a real deal-breaker. Any progress on this issue @burhanrashid52 ? |
Nop @sepehr1014 I have labelled as help wanted. @fandygotama-tokobagus Did you resolve this issue? |
@burhanrashid52 i think whether can we draw sticker on orignal bitmap ? |
…move_white_line Test image crop to remove white line
hi @burhanrashid52 , sorry i didn't get your mention since i changed my github username :(. I haven't gotten chance to finish the project, however the calculation already done on my repo and its working, you can save the real image with sticker on it. I will find some time to finish the project and do PR |
@gotamafandy I was looking for someone to fix this. I am waiting for your PR. |
Guys any update on this issue? |
Hummm... This issue is very important for photo editor. But Maybe We need native to implements this feature. Have anyone help? |
How about using a custom draw to scale down the |
Where you able to make it work ? @KimiChiu |
It depends, I have 7 ongoing projects. |
@burhanrashid52 Please sir add crop feature in your repository ASAP just like in https://github.com/siwangqishiq/ImageEditor-Android |
Is this problem solved in new version 2.0.0? |
No. Scaling the image is a hard problem to solve. The 2.0.0 version is just a Kotlin conversation. |
this worked for me https://github.com/tauseefrehman2/pinch-to-zoom-linear-layout |
Here is my suggestion for preventing downscaling of images (which I successfully got working):
Since this library is generating bitmaps from displayed views itself, then manipulating views seems the only solution (TO ME) without drastically changing the underlying library code. Since the library is migrated to kotlin, I could not try and implement changes in the library itself as I am yet to learn kotlin 😢 |
Jave is interop with Kotlin. So you can create a separate class in Java where this scaling logic resides and return back the scaled image to the Kotlin method by delegating it to the java method. Then we can convert the Java class to Kotlin if more logic is required in the future. |
PhotoEditor.getEmojis(getActivity()); i dont get this method getEmojis() |
I came across two problems while working with the library:
The correct approach would be to have an internal representation of the image and do all the processing on that. This would allow to keep the original size of the image (you can still show the image scaled down to fix problem 1).
The text was updated successfully, but these errors were encountered: