Resize to Ratio
Resize components to match the aspect ratio of their nested images.
Plugin 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
| Version | 2 |
|---|---|
| Created | March 31, 2025 |
| Last Updated | February 19, 2026 |
| Category | File organization plugins |
| Creator | marius |
| Stats | 1 installs, 1 likes |
| Pricing | Free |
Technical Details
- API:1.0.0
- UI:index.html
- main:code.js
- Document Access:dynamic-page
- Editor Types:figma
- Allowed Domains:
- none
More Like This
Discover other plugins in the File organization plugins category.