Back to Plugins
Resize to Ratio

Resize to Ratio

Resize components to match the aspect ratio of their nested images.

Plugin Preview

Resize to Ratio preview

About this plugin

Resize components to match the aspect ratio of their nested images.What it doesAdjusts the dimensions of selected components based on the natural aspect ratio of an image layer inside them. Useful for card components where you want the container to fit the image properly.UsageSelect one or more component instances containing an image layerRun the pluginSpecify the image layer name (default: `image`)Choose to maintain width or heightClick resizeOptionsImage layer name - Name of the nested layer containing the image fillMaintain width - Keep width fixed, adjust height to match ratioMaintain height - Keep height fixed, adjust width to match ratioRequirementsThe image layer must use "Fill" for both width and height constraints.

Plugin Details

Version2
CreatedMarch 31, 2025
Last UpdatedFebruary 19, 2026
CategoryFile organization plugins
Creatormarius
Stats1 installs, 1 likes
PricingFree

Technical Details

  • API:1.0.0
  • UI:index.html
  • main:code.js
  • Document Access:dynamic-page
  • Editor Types:
    figma
  • Allowed Domains:
    • none