Serverside API for Zoom option of image editor

2 posts, 0 answers
  1. Chintha
    Chintha avatar
    11 posts
    Member since:
    May 2012

    Posted 07 Nov 2012 Link to this post

    I want to zoom out/ zoom in the image from server side. Any Server side method for zoom the image using telerik image editor.
    Actually i zoom out/Zoom the image from client side.But i need to do the same thing from server side.
    My code:
      function OnClientLoad(sender, args) {
                if (sender._imageKey) {
                  var Width = sender.getEditableImage().get_width();
                  var Height = sender.getEditableImage().get_height();
                    if (!isNaN(Number(objhdnOriginalWidth)) && Number(objhdnOriginalWidth) != 0 && !isNaN(Number(objhdnOriginalHeight)) && Number(objhdnOriginalHeight) != 0) {
                        if (objhdnOriginalWidth > 1000 || objhdnOriginalHeight > 600) {
                            var widthPercentage = (1000 * 100) / objhdnOriginalWidth;
                            var heightPercentage = (600 * 100) / objhdnOriginalHeight;
                            widthPercentage = Math.floor(widthPercentage);
                            heightPercentage = Math.floor(heightPercentage);
                            if (heightPercentage > widthPercentage) {
                            else {

    please help me.
  2. Vessy
    Vessy avatar
    1357 posts

    Posted 09 Nov 2012 Link to this post

    Hi Chintha,

    I am afraid to say that the desired scenario could not be achieved Server-Side. The operations which can be executed from the server are those which apply actual changes to the image (like Crop, Resize, Add text, etc. ). The Zoom functionality works on UI level and this is why it could be executed only Client-Side.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Telerik UI for ASP.NET Core is out
Back to Top