Comments (5)
Just want to let anyone know in case of having this issue, i create .jpeg and it give me fairly small size after crop.
Thanks
from react-advanced-cropper.
@ssatriya, you can save an image to a special array before you change src
. But I'm not sure that I get what you want to achieve.
from react-advanced-cropper.
@Norserium Yap, I already find the solution. In my case just using carousel and dynamically create Ref for each image. With this i think it also easier to perform image editing (like change brightness). Don't know about performance but it works.
Other questions maybe, is it normal to get bigger size after cropping? I tried to 1 mb image and get like 5-6 mb in result after cropped.
from react-advanced-cropper.
@ssatriya, yes, it's, because it depends on the format that you use when you get a content from canvas
: toDataURL, toBlob.
For example:
canvas.toDataURL("image/jpeg");
By default, that methods use image/png
and this format doesn't use lossy compression, therefore the result often has larger weight than an uploaded image.
from react-advanced-cropper.
@ssatriya, you are welcome!
from react-advanced-cropper.
Related Issues (20)
- Works with Remix? HOT 2
- 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
- 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
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.