#✅ | .

1 messages · Page 1 of 1 (latest)

old ravenBOT
#

If you need the image to resize with the window while keeping its aspect ratio, the easiest approach is to turn on layout-wide Auto-Scaling (right-click the editor background → Auto-Scaling) so everything scales together. That already preserves ratios for you.

If you still want manual control, enable Advanced Sizing on the image and drive its width/height with placeholders that use the screen size and your image’s aspect ratio. For example:

{"placeholder":"calc","values":{"decimal":"false","expression":"({"placeholder":"guiwidth"} - 40)"}}

for width and then calculate height with the ratio (e.g., if the image is 16:9):

{"placeholder":"calc","values":{"decimal":"false","expression":"({"placeholder":"guiwidth"} - 40) * 9 / 16"}}

That way the image grows/shrinks when the window resizes and keeps the same ratio. You can also combine those expressions with min/max limits if needed.

(If you’re not comfortable with calculator placeholders yet, the Advanced Positioning & Sizing doc explains how to plug in screen width/height values safely.)

#

If you want the image only to grow when the window gets wider but not shrink below your base size, keep the advanced sizing expressions but clamp them with the maxnum placeholder. That way the width still follows guiwidth but never drops below, say, 320 pixels, and you can derive the height from the resulting width so the aspect ratio stays intact.

Example for width (replace 320 with your original width):

{"placeholder":"maxnum","values":{
  "first":"320",
  "second":"{"placeholder":"calc","values":{"decimal":"false","expression":"{"placeholder":"guiwidth"} - 40"}}"
}}

Then link the height to the width ratio (assuming 16:9):

{"placeholder":"calc","values":{
  "decimal":"false",
  "expression":"{"placeholder":"maxnum","values":{"first":"320","second":"{"placeholder":"calc","values":{"decimal":"false","expression":"{"placeholder":"guiwidth"} - 40"}}}} * 9 / 16"
}}

This keeps the aspect ratio locked while the width only increases with the window size and never shrinks below your minimum. If you ever want the whole layout to scale instead, enabling layout-wide Auto-Scaling (right-click background → Auto-Scaling) handles it automatically. For more on using placeholders in sizing/positioning, check the Advanced Positioning & Sizing page 😊

#
Thread Marked as Solved

This support thread has been marked as solved by @proper nymph.

The AI helper is now disabled, but you can still continue the conversation if needed. Thank you for using our support system!