Comments (29)
I guess what I want to do it, resize the image to the stencil view
from react-advanced-cropper.
@hamidihekmat, frankly, I didn't understand what do you want to achieve. Could you give some examples or draw the image of the desired result?
from react-advanced-cropper.
Screen.Recording.2022-10-07.at.1.18.18.PM.mp4
Okay so when you click on the crop, on save I want the the other view to change to the cropped view without having to convert the image to base64 and changing the image src, in a way I want the image to resize to the crop view
from react-advanced-cropper.
And also is there way to remove the black background, I tried to set it to transparent but it's shows as grey transparent
from react-advanced-cropper.
@hamidihekmat, well it's the interesting request.
If I understood you correctly, I have never seen croppers like you want to get. Could you try this example (the bottom one) and tell me how close is it to the desired cropper.
And also is there way to remove the black background, I tried to set it to transparent but it's shows as grey transparent
It's not the gray background, it's the overlay around stencil.
from react-advanced-cropper.
@Norserium that's perfect, where can I get the code from?
from react-advanced-cropper.
@hamidihekmat, well, it's not ready now, because it depends on the new unreleased features.
When I release the new version I will give you link to the source code. But I warn you:
- the code is complicated
- you have to fix
react-advanced-cropper
version, because the code depends on the parts that can be easily changed during the beta testing
So, how urgent is it?
In any case, test it carefully. If you want some changes in the current behavior tell me, I will look what I can do.
from react-advanced-cropper.
for now it's perfect, it's kinda urgent but from the looks of it you did a really nice job. I'm amazed! I'll just wait when it's fully implemented. Then ill take the example and change the styles to chakra. ui. Thank you!
from react-advanced-cropper.
@hamidihekmat, very well. I will try to find time on the weekend.
from react-advanced-cropper.
@Norserium enjoy your weekend man and no rush. Thanks again :)
from react-advanced-cropper.
@hamidihekmat, the new features are released in 0.14.0
. The source code is available here.
Don't you mind to add your result to the showcase page when it will be ready? If you don't mind, send me the final result to integrate it to documentation.
from react-advanced-cropper.
I found a bug, the aspect ration doesn't change once you crop the image and then rotate it. Otherwise it looks great!
Screen.Recording.2022-10-23.at.10.45.48.PM.mov
from react-advanced-cropper.
I image rotates but the stencil stays on the same coordinates, the default full image rotation should look like the cropped image rotation
from react-advanced-cropper.
I found a bug, the aspect ration doesn't change once you crop the image and then rotate it.
That's not a bug, it's the default cropper behavior. Although, it's possible to redefine it.
I image rotates but the stencil stays on the same coordinates, the default full image rotation should look like the cropped image rotation
I didn't get, what's need to do?
from react-advanced-cropper.
@Norserium you see how in default view when you rotate the image rotates with the aspect ratio, if it's 16/9 then rotating 90deg will turn the image to 9/16. I would to have this feature when rotating cropped area , is this possible?
from react-advanced-cropper.
from react-advanced-cropper.
@hamidihekmat, any news?
from react-advanced-cropper.
@hamidihekmat, any news?
from react-advanced-cropper.
@hamidihekmat, any news?
from react-advanced-cropper.
@Norserium hey sorry (long busy work weeks), I was working on writing tests for it and making sure it worked perfectly for my use case. I used context api to store the cropper ref and used it to decouple cropper controls. Aside from that everything else is working perfectly fine. Thanks for all your work! You wanted to use this for showcase?
from react-advanced-cropper.
@hamidihekmat, it's great!
You wanted to use this for showcase?
Yes, that would be great. It was a tricky case.
from react-advanced-cropper.
@hamidihekmat, is your project public available?
from react-advanced-cropper.
No, my company is not allowing me to make this public, until we launch. ~April - 2023
from react-advanced-cropper.
@hamidihekmat, that's okay. I will wait.
from react-advanced-cropper.
thanks man :)
from react-advanced-cropper.
Screen.Recording.2022-12-08.at.12.40.18.PM.mov
Also, is there away to restrict the zoom to stay on the image aspect ratio? I'll take a look at your code though to see if I can fix it
from react-advanced-cropper.
@hamidihekmat, but if you resize an image a little bit the background aspect ratio will be changed in any case. Could you draw some pictures to illustrate your idea?
from react-advanced-cropper.
@hamidihekmat, any news?
from react-advanced-cropper.
@hamidihekmat, I close the issue, but feel free to reopen.
from react-advanced-cropper.
Related Issues (20)
- Applying a transform to the preview only HOT 10
- Preview to Canvas? HOT 4
- How to make stencil to minWidth and minHeight.
- Blinking issue with the image on page loads. HOT 2
- Unable to Change Wrapper Color to White HOT 5
- URGENT - Image wrongly sized on Safari HOT 7
- Mouse resizing doesn't work HOT 5
- change the stencilComponent to use an oval instead of a circle or rectangle? HOT 13
- How to set the maximum zoom? HOT 1
- When rotating, the cropper coordinates change and the visible area becomes cropped HOT 1
- How to implement undo redo functionality while editing image? HOT 1
- Reposition Cropper for Progressively Loaded High Resolution Image HOT 1
- Image is not viewed in full size based on the crop HOT 2
- Only in Safari for a Portrait image after cropping when saving it shifts to the left hand side HOT 1
- Image load not taking entire wrapper height HOT 2
- Image reduced in height when taken with camera HOT 1
- Cropper for multiple images HOT 5
- Is it possible to set the stencil coordinates? HOT 3
- Breaking change in 0.19.5 from 0.19.4 (a patch version!) HOT 2
- The file size of the image actually increases by almost 10 times after cropping HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-advanced-cropper.