How to programmatically resize a picture with the ImageEditor

2 Answers 40 Views
ImageEditor
Maik
Top achievements
Rank 1
Iron
Maik asked on 11 Oct 2023, 07:31 AM

Based on this link we want to use the resize Command to downscale an uploaded picture

https://docs.telerik.com/kendo-ui/api/javascript/ui/imageeditor/methods/executecommand#executecommand

Something like

imageEditor.executeCommand({ command: "ResizeImageEditorCommand", options: {height: 1080, aspectRatio: true } });

How could this be realised

best regards

Maik

2 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 13 Oct 2023, 11:51 AM

Hello, Maik,

Please refer to this Dojo example and let me know how it works for you.

Looking forward to your reply.

Regards,
Martin
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
0
Maik
Top achievements
Rank 1
Iron
answered on 16 Oct 2023, 06:38 PM

Hi Martin,

this works perfect for me. Great :-)

Is there a list of ImageEditorCommand?
I can't find anything else in the API Reference documentation.

Thank you and best regards

Maik

Martin
Telerik team
commented on 19 Oct 2023, 11:09 AM

Hello, Maik,

Currently we don't have a list of the available commands. We will consider updating our documentation.

Vakho
Top achievements
Rank 1
commented on 28 Mar 2024, 06:14 PM

Hi, has this been added to documentation yet? would be useful.. had to use multiple commands and took a long time to look up on forums.
Martin
Telerik team
commented on 02 Apr 2024, 08:23 AM

Hello, Vakho,

The ImageEditor commands are not yet documented. I will bring up the topic within the team again to see if we can spare resources to write the article.

Tags
ImageEditor
Asked by
Maik
Top achievements
Rank 1
Iron
Answers by
Martin
Telerik team
Maik
Top achievements
Rank 1
Iron
Share this question
or