Inkscape.org
Beyond the Basics Aspect ratio lock not working in Inkscape 1.2
  1. #1
    nihon94 nihon94 @nihon94

    I am using inkscape-1.2.2_2022-12-09_732a01da63-x64 on Windows 10 (updated) when I want to enter the desired figures in the width or height I got to try three or four time to get the result otherwise it keep changing. Example if I want an image to be 500x500 pix and enter the width or height in the tool bar where lock is located it keep changing. However, when I lock, it should be the same for width and height but unfortunately not.

    Please refer two screen shots, which shows locked and unlocked case.

    Your help will save my time.

    Thank you.

    Inkscape Aspect Ratio Not Working
    Inkscape Aspect Ratio Not Working2
  2. #2
    Paddy_CAD Paddy_CAD @Paddy_CAD

    In this quick test, I drew a rectangle and set its size to 10px wide and 10px high. I switched to the select tool and turned on [Lock aspect ratio]. I set the width to 500px and the height also changed to 500px, as expected.

    Can you upload a misbehaving svg image for us to examine?

  3. #3
    Polygon Polygon @Polygon🌶

    Recent Inkscape version is on 1.3.2

  4. #4
    nihon94 nihon94 @nihon94

    Hi, my first time to upload svg file.

    I created this doc of SVG for testing just now. The round should be 500 and the rectangle should be 200 px.

    Thank you.

     

    20240304 Aspect Ratio Testing 500 And 200 Px Doc
  5. #5
    Paddy_CAD Paddy_CAD @Paddy_CAD

    ellipse         542.095px wide x 500.000px high
    rectangle    200.000px wide x 204.276px high

    I can't see anything unusual about these shapes. They scale proportionally for me when I lock the aspect ratio. What were your starting shape dimensions? Did you use the select tool to re-size them, or maybe you used the node/ellipse/rectangle tools? Did you stretch them by dragging the corner selection handle? Or did you enter values in the tool control menu bar?

  6. #6
    nihon94 nihon94 @nihon94

    @Paddy_CAD

    First drew ellipse then click on selection tool then entered the height and locked. Unfortunately the value changes strangely. As you said, I can't see anything unusual about these shapes please refer screen shots of both and values for further analysis.

    Thank you

    Inkscape Rectangle 2
    Inkscape Ellipse 1
  7. #7
    Paddy_CAD Paddy_CAD @Paddy_CAD
    nihon94

    the value changes strangely

    Please explain in more detail what you mean by this. What did you start with? What did you do? What did you expect? What actually happened?

    So far I can't reproduce the problem. Scaling your shapes proportionally works as expected for me.

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Aspect ratio lock not working in Inkscape 1.2