C# / .NET 5 / Telerik.UI.for.AspNet.Core (V2021.2.511)
Dear Telerik,
After opening a JPG file in the Kendo ImageEditor and selecting Save, the image is saved to a .jpg file but in the PNG format instead of the JPG format. This is quite annoying especially because of the increase in file size. For example, a 1MB JPG file is saved to a 6MB PNG file.
Question: How do I request the Kendo ImageEditor to save an image in the same format as the original ?
<div class="k-content">
@(Html.Kendo ().ImageEditor ()
.Name ("ImageEditor")
.HtmlAttributes (new { @class = "w-100" })
.Height (720)
.SaveAs (PoSaveAs => PoSaveAs.FileName ("Image.jpg"))
.Toolbar (PoToolbar => PoToolbar.Items (PoItem =>
{
PoItem.Add ().Name ("open") ;
PoItem.Add ().Name ("save") ;
PoItem.Add ().Name ("undo") ;
PoItem.Add ().Name ("redo") ;
PoItem.Add ().Name ("resize") ;
PoItem.Add ().Name ("crop") ;
PoItem.Add ().Name ("zoomIn") ;
PoItem.Add ().Name ("zoomOut") ;
PoItem.Add ().Name ("zoomDropdown") ;
})))
</div>
Thanks for your help.
Steps to reproduce:
1. Open an image
2. Select the crop tool.
3. Resize the crop to a smaller area.
4. Move the crop area to the top middle of the image for example.
5. Resize the crop to a larger area using the bottom right handle.
Current behavior:
The crop area overflows the image if it is made large enough.
The problem is also reproducible on Telerik Demos at https://demos.telerik.com/aspnet-core/imageeditor
C# / .NET 5 / Telerik.UI.for.AspNet.Core (V2021.2.511)
When the crop tool is active and the crop isn't confirmed/canceled upon importing of new image the cropped image persists and overlays the imported image
The cropped image persists when the crop hasn't finished and a new image is imported.
The cropped image should be cleared from view.