-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Feature] Cropping the image relative to the crop-container size. #105
Comments
Sorry, I don't understand the follow words:
|
Ok it was my thought on .crop-container. I will explain the matter itself: Let my website's default avatar/image size is 100x100px. User:
Then when they submit the image there is no much work on server side because the image size is already 100x100px, moreover the browser does not need to fetch it again from the server to the avatar image box after uploading. It will just replace the cropped image and the default avatar on client side. Server: Coder:
How can we achieve this? |
I see! Thank you for your suggestion. I will try to support it. |
Currently the script crops the image relative to the natural size (naturalWidth, naturalHeight). Any option that I can crop it relative to the visible image in the crop-container? Working on natural size eats up much memory which is usually resulting in low memory in mobile phones. I guess adding this feature would benefit a lot for those who only uses this script for avatars where it reduces the server side code and effort.
Thanks.
The text was updated successfully, but these errors were encountered: