when resizing images by dragging, aspect ratio is not maintained

Last post 01-28-2006, 11:14 PM by Adam. 7 replies.
Sort Posts: Previous Next
  •  12-06-2005, 2:32 PM 13465

    when resizing images by dragging, aspect ratio is not maintained

    When resizing images by dragging (in normal mode within the editor), the aspect ratio is not maintained when dragging is applied to  a corner resizing handle (as opposed to  MS Word, see  http://office.microsoft.com/en-us/assistance/HP051899201033.aspx )

    I hope this gets done soon, and pls advise if I can pick up a patch.
     
     
  •  12-08-2005, 4:24 AM 13563 in reply to 13465

    Re: when resizing images by dragging, aspect ratio is not maintained

    Problem resolved in the latest build (12-08-2005).

    Editor.MaintainAspectRatioWhenDraggingImage property has been introduced.

    /// <summary>
    /// If you do not want to preserve the aspect ratio when you drag and resize an image, you can set the MaintainAspectRatioWhenDraggingImage property to false.
    /// By default, MaintainAspectRatioWhenDraggingImage is set to true to enable the preservation of the aspect ratio.
    /// </summary>
     
    Demo:
     
    Download:

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  12-08-2005, 12:16 PM 13580 in reply to 13563

    Re: when resizing images by dragging, aspect ratio is not maintained

    thank you so much for the quick work.

    There are two troubles and one regression error.

    i) aspect ratio always ends up 1:1 (a square).

    ii) while dragging aspect ratio is not maintained

    iii) (regression) side handle dragging behaviour must not be altered by this fix, or you have lost the facility to choose an arbitrary aspect ratio when the new flag is set.

    Regards, Stuart
  •  12-08-2005, 2:06 PM 13597 in reply to 13580

    Re: when resizing images by dragging, aspect ratio is not maintained

    Stuart,

    >>i) aspect ratio always ends up 1:1 (a square).  

    It should not. Can you test again?  CuteEditor just keep the image original aspect ratio.



    ii) while dragging aspect ratio is not maintained

    By default, IE doesn't have the function to preserve the aspect ratio when you drag and resize an image.

    We wrote our workaround to this issue. 
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  12-08-2005, 4:55 PM 13607 in reply to 13597

    Re: when resizing images by dragging, aspect ratio is not maintained


    (i)
    ah yes, you are right indeed. the aspect ratio is maintained. But I observed that only changes in the horizontal axis are respected; any change to the vertical axis is ignored!!!
     
    (ii) are you saying you cannot maintain size ratio while dragging notwithstanding the workaround you wrote?
     

    (iii) regression bug must be addressed 
     
    Thank you for your attention.
     
    -Stuart
     
    p.s. this build may have introduced a js exception that is not caught...just as I went to preview this post my JIT js debugger fired; but it does fire reliably, so u may not observe it. Just keep it in mind.
  •  12-08-2005, 5:14 PM 13608 in reply to 13607

    Re: when resizing images by dragging, aspect ratio is not maintained

    Further my my previous post, after u mentionned IE specifically w/r to limitations, I went and tried a gecko browser and it performed beautifully. All of the troubles I cited vanished.
     
    In my particular case -  for the timebeing at least - I can enjoin my users to stay way from IE, so my sense of urgency is relieved, and I can live with the status quo. For that I thank you very much.
     
    That said, it functions miserably in IE, and I beleive it is in everyone's interest that you either fix it in IE, or disable it in IE. But whatever you do, please maintain it for the browsers for which it works well. Clealy, if you can make it work in IE, it will be quite powerful indeed, will make your customers very pleased, and give you an edge over competitors who have not yet achieved it (such as one competitor I know of that charges almost double).
     
    Thanks again so much.
     
    Best, Stuart
  •  12-22-2005, 4:09 PM 14130 in reply to 13608

    Re: when resizing images by dragging, aspect ratio is not maintained

    i)
     

    this does not work when the image source is parametrized with more than 2 or more parameters:


    for example:
    <img id=productimage style="WIDTH: 152px; HEIGHT: 127px"
     height=127 src="http://localhost/wdr/getimg.aspx?id=214&mw=107&mh=102" width=152 >

    I suppose the ampersand is not dealt with properly. 
     

    ii)
     
    As I mentionned several weeks ago, the aspect ratio preservation mechanism functions very poorly in i.e.. For one, the vertical component is ignored. Is there no way to make this work in IE?
     
    Given the length of time that has passed since this issue was first raised,  I do not believe Cutesoft appreciates the importance of this point in terms of its product. The current state of affairs in IE w/r to image resizing with aspect ratio maintained is unuseable; IE has the overwhelming  majority of the market share, and image handling is very important for CMS.
     
    If it is impossible to get it working in IE, I reccomend you remove the corner resizing handles, disable aspect ratio preservation when dragging a side handle, and provide an option for preserving aspect ratio in the property dialog, such that, when enabled, a change to one dimension will automatically affect the other. (this is essentially what the high end product in the marketplace does, except they do not remove the corner handle).
     
    Honestly, when you provide a new feature, don't deliver it until it has been tested backwards and forwards by multiple testers.  It seems that there is a culture of panic in your maintenance department.
  •  01-28-2006, 11:14 PM 15261 in reply to 14130

    Re: when resizing images by dragging, aspect ratio is not maintained

    >>this does not work when the image source is parametrized with more than 2 or more parameters:
     
    This issue has been fixed in the version 5.2.
     
    Demo:
     
     
    http://cutesoft.net/example/SqlSample/UseSql.aspx

    >>As I mentionned several weeks ago, the aspect ratio preservation mechanism functions very poorly in i.e.. For one, the
    vertical component is ignored. Is there no way to make this work in IE?

    This problem is caused by IE. Right now Editor.MaintainAspectRatioWhenDraggingImage property is best solution we have.

    In the version 5.2, we introduced a new property.

    Editor.EnableObjectResizing Property

    Specify whether or not to allow the users resize an object winthin the Cute Editor. For example, if you want to prevent people from resizing images, table winthin the Cute Editor, you can set it to false.

    Hope it helps.

    Let me know if you have any further questions.


     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML