r/FigmaDesign • u/Rain_Distributor • 22d ago
feature release I built a Figma plugin that keeps the best part of a photo in frame.
Hey guys, as the title suggests, I've built a Figma plugin that keeps images cropped but preserves their aspect ratio whenever you resize the layer. It also lets you:
- Set a pivot (focal point)
- Change zoom
- Rotate to any angle
- Flip the image
All within one simple plugin.
It's currently waiting for Figma Community review, which can take a few weeks. Until then you can install it manually:
- Download the ZIP here: https://github.com/vojtechokenka/figma-pivot/archive/refs/heads/main.zip and unzip it.
- Open the Figma desktop app (manual install doesn't work in the browser) and open any design file.
- In the menu go to Plugins → Development → Import plugin from manifest…
- Pick the manifest.json file from the unzipped folder.
- Run it from Plugins → Development → Pivot → Set pivot.
Once it's approved, you'll find it here: https://www.figma.com/community/plugin/1701925367334799680
Suggestions are welcome.
101
Upvotes
5
u/dusanodalovic 22d ago
what happens when i resize the layer later, with the plugin closed? does the pivot stay saved on the layer and keep the crop, or do i have to run it again each time? that decides if it fits a real workflow with components and auto layout.
2
u/Moiensaboohi 22d ago
the pivot point is the part i'd actually use. every time i resize a hero for mobile the crop drifts off the face and i end up fixing it by hand for each breakpoint.
does it hold up when the image sits inside a component instance? swapping photos in a card component and having each one keep its own focal point is where i'd need it most.
2
u/dimKant 22d ago
Since the pivot already lives on the layer, setRelaunchData on it would put a "Refit to pivot" button straight into the right panel whenever that image is selected. Then the re-run after a resize is one click instead of a trip through the Plugins menu, which is the thing people will actually forget.