This is a migrated thread and some comments may be shown as answers.

Custom predefined sizes in crop dialog

3 Answers 59 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
miksh
Top achievements
Rank 1
Iron
miksh asked on 28 Apr 2015, 04:36 PM

I need to implement a very straightforward (and I believe most common) requirement to limit to a couple the predefined crop sizes in the crop dialog, e.g. 1000x500 and 950x500.

How can we do it? Based your documentation we must:

  • copy the crop dialog from installation file in separate folder
  • change the dropdown list in the crop dialog
  • configure the ImageEditor control to use external dialogs from that folder
  • use a hack described here http://www.telerik.com/help/aspnet-ajax/imageeditor-custom-crop-settings.html to init the crop box to the first predefined size tin the dropdown
  • keep using RenderMode="Classic" as the copied dialog is not rendered properly in Lightweight mode
  • anything missed?

It seems to be too much for such a simple task, isn't it? Same think to resize dialog.

I wonder is there a better/simpler way to accomplish this task which would work in any render mode?

I would really appreciate if the crop/resize dropdown items could be configurable at design time.

Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 30 Apr 2015, 05:06 PM
Hello miksh,

Yes, these are the exact steps you have to go through in order to achieve the described functionality. The only thing you can skip is the custom-stop-settings-hack. As you have already enabled the external dialogs you can simply define the initially selected item of the ComboBox either in its declaration in the markup of the dialog or in its initialize() method.

As for the Classic render mode - unfortunately this is the only mode in which the ImageEditor dialogs are implemented for the moment.

Regards,
Vessy
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
lee
Top achievements
Rank 1
answered on 17 Sep 2015, 12:52 PM
Do I need another image resizing SDK to help customixe image sizes?
0
Vessy
Telerik team
answered on 17 Sep 2015, 04:31 PM
Hi lee,

RadImageEditor provides both server- and client-side functionality for customizing the size of the edited image and you do not need to use any external SDK in order to achieve it. You can review the API of the control here:
Server-side API
Client-side API

Regards,
Vessy
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ImageEditor
Asked by
miksh
Top achievements
Rank 1
Iron
Answers by
Vessy
Telerik team
lee
Top achievements
Rank 1
Share this question
or