Polario Frame
polario-frame is an easy-to-use photo frame package for Typst. It provides multiple themes and image cropping utilities to create your photo frames. polario is derived from Polaroid, reflecting the aspiration for this tool to deliver desired photos as quickly as a Polaroid camera.
Simple Usage
- Import the
polario-framepackage:
#import "@preview/polario-frame:1.0.0": *
- Use the crop utility to crop the image:
#let img = crop(bytes(read("simple.jpg", encoding: none)), start: (25%, 25%), resize: 75%)
- Use
polario-frameto render the photo frame:
#let ext-info = (
"first": image("logo/apple.svg"),
"second": text(size: 22pt)[This is the title],
"third": text(size: 8pt)[Kunming\ Lijiang],
"extend-middle-ratio": 65%,
"background": rgb("#ffffffee"),
)
#render((width, height), flipped: false, theme: "classic-bottom-three", img: img, ext-info: ext-info)
This makes it easy to add the classic-bottom-three frame to the photo.
Rendering result

If you need other theme frames, check the example. It contains default themes, custom themes, and examples of popular smartphone brand frames. If you find that the basic themes don’t cover your needs, please submit an issue or PR.
Basic Theme Parameters
Render Parameters
size: Can be passed as a tuple like(width, height), or standard paper names likeA1~A11flipped: Whether to flip, default is falsetheme: Frame theme, available valuesclassic-bottom-twoclassic-bottom-threeclassic-right-twoclassic-right-threepolaroid-bottom-twopolaroid-bottom-threepolaroid-right-twopolaroid-right-threeimg: Image, should be cropped before passingext-info: Frame extended information, determined according to theme
Supported ext-info Properties
first: The first element from left to right or top to bottom, empty by defaultsecond: The second element from left to right or top to bottom, empty by defaultthird: The third element from left to right or top to bottom, empty by default (only supported by *-three themes)extend-ratio: Extended white border width ratio, default 10%extend-half-ratio: Extended white border first element ratio, default 50% (only supported by *-two themes)extend-middle-ratio: Extended middle element ratio, default 20% (only supported by *-three themes)background: Background color, none by defaultinset-ratio: Padding ratio, no inset by default 3% (only supported by polaroid-* themes)
Versions
1.0.0
- Official version
- Provides 8 basic theme styles
classic-bottom-twoclassic-bottom-threeclassic-right-twoclassic-right-threepolaroid-bottom-twopolaroid-bottom-threepolaroid-right-twopolaroid-right-threeframes - Provides cropping tool
crop - Added more examples in example folder
0.1.0
- Initial release