Make an image into a polaroid with optional rotation.
Telex project here.

A caption can also go here

Prompt
Here's a prompt for creating a Polaroid block:
Create a WordPress Gutenberg block called "Polaroid Frame" that adds vintage polaroid-style frames around images. The block should include: Core Features:
Image uploader that accepts standard image formats (JPG, PNG, WebP, GIF) 6 distinct polaroid frame styles to choose from:
Classic White - Traditional white border, slightly thicker bottom margin, subtle shadow Vintage Cream - Off-white/cream colored frame with aged paper texture, soft edges Black Edge - White frame with thin black outer border, modern minimalist look Retro Rainbow - White frame with subtle rainbow gradient edge effect Worn & Torn - White frame with rough, slightly torn edges and coffee stain marks Double Frame - Nested frame effect with thin inner border and wider outer frame
Customization Options:
Frame style selector (dropdown or visual picker with thumbnails) Optional caption text field that appears below image in handwritten-style font Rotation angle slider (-15° to +15°) for tilted effect Shadow intensity control (none, subtle, medium, dramatic) Image size options (small, medium, large, full width)
Design Requirements:
Frames should have realistic proportions (thicker bottom margin like real polaroids) Subtle CSS transforms for depth and realism Responsive design that scales properly on mobile Maintain image aspect ratio within frame Smooth hover effects (optional slight lift/scale animation)
Block Settings Panel:
Frame style selector Rotation control Shadow settings Caption toggle and text input Alignment options (left, center, right)
The block should be lightweight, use CSS for styling (no external dependencies), and work seamlessly with WordPress's block editor.