-
Notifications
You must be signed in to change notification settings - Fork 32
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
Clipped Size larger then image #6
Comments
Hi @jessicakennedy1028, |
Thank you for your answer, let me add some more information... The actual image size: 30.8K actual image width: 729px height: 486px Uploaded image (animalImage width): 260px (animalImage height): 173px DataURL size: 8067 I also have the dataURL's for both sets. The first one has 7980 cols of string and the second one has 72173 cols of string This is similar to my findings with the .length method. I would be happy to give you access to the entire project so you can see the entire setup if you need. I could also allow you to SSH into my local PC so you can access it with your own tools (Visual Studio, etc) |
@jessicakennedy1028 I made a reproduce here are repository and demo, if you want to run this example at local you need to use something like serve to serve these static files in order to clip the same-origin image. As you can see if you clip area within the image, the result size is smaller than the original images size. However if your clipping area is larger then the image, the result image size will larger then the original image size. This is because I want to remain the resolution of the original image. I think instead of compress images during upload, maybe try to compress them after clipping? |
Use https://github.com/timtnleeProject/vuejs-clipper/wiki/Resulting-canvas-size |
I have done several tests, and it seems that I am either not understanding something, or there is something wrong. Here is what is going on.
The uploaded image after compression and adjusting the max-width to 260px, becomes:
animalImage Size => 8067
The image after the clip button is pressed:
clippedImage Size => 73294
Am I missing something on the preview versus set image functions?
The text was updated successfully, but these errors were encountered: