Keep the original resolution while cropping

http://www.syncfusion.com/downloads/support/directtrac/general/ze/IESample278277967.zip


In this example, I replaced the build-in image with my own one. I found my picture was also resized after I saved the cropping. How can I keep the original resolution after cropping?
For example, the size of my image is 4000x2000. After cropping half of it, it should be 2000x2000 but the result is much smaller.



1 Reply

ET Eswaran Thirugnanasambandam Syncfusion Team May 24, 2022 02:02 PM UTC

Currently SfImageEditor control doesn’t have the support to get the cropped image dimensions. We have already logged a feature request for this requirement, and it can be tracked through our feedback portal below.


https://www.syncfusion.com/feedback/33409   


Please cast your vote to make it count. We will prioritize the features every release based on the demands, and since we don’t have an immediate plan to implement this feature and it will be included in any of our upcoming releases.


If you have any more specifications/suggestions to the feature request, you can add them as a comment in the portal.


Using the Save method, we can save the image with a specific dimensions (Once the above feature is implemented, you can pass the cropped dimension here) as like in the below code snippet.

editor.Save(".png", new Size(2000, 2000));


We have modified the provided sample to save the image with specific dimensions and please get it from the below attachment.


Please check the above sample and let us know if you need any assistance.


Please refer to the below help documents to know more information.

https://help.syncfusion.com/xamarin/image-editor/save#saving-image-with-custom-size-and-format


Attachment: IESample_80020530.zip

Loader.
Up arrow icon