unit-test Software License Release
ποΈ A Chrome extension that lets you overlay JPEG/PNG/SVG images on any webpage.
Perfect for designers comparing mockups, developers checking pixel-perfect implementations, or anyone who needs to visually compare images against web content. No more switching tabs β compare side by side in real time.
- Drag & Drop Positioning - Move the overlay anywhere on the page
- 8-Direction Resizing - Resize from any corner or edge
- Aspect Ratio Lock - Maintain proportions while resizing (toggleable)
- Opacity Control - Adjust transparency for easy comparison
- Visibility Toggle - Quickly show/hide the overlay
- JPEG/PNG & SVG Support - Works with common image formats
- Style Isolation - Shadow DOM ensures no conflicts with host page styles
- Keyboard Shortcuts - Move with arrow keys; Shift+arrow for 10 px jumps; Backspace to delete
- Clipboard Paste - Paste images with Cmd/Ctrl+V, including SVG as plain text
- Fit to Viewport - Expand image to fill the viewport width and toggle back to original size
- Manual Size Input - Type exact pixel dimensions directly in the toolbar
- Clone or download this repository
- Build the extension:
npm install npm run build
- Open Chrome and navigate to
chrome://extensions/ - Enable Developer mode (toggle in top-right corner)
- Click Load unpacked and select the
dist/folder
- Click the SnapLayer extension icon in Chrome toolbar
- Select a JPEG, PNG or SVG image file from your computer
- The image appears as an overlay on the current page
- Move: Drag the image to reposition
- Resize: Drag the corner or edge handles
- Adjust: Use the toolbar to change opacity, toggle visibility, or delete
| Control | Description |
|---|---|
| Width / Height | Enter exact pixel dimensions |
| Expand Icon | Fit to viewport width (click again to restore) |
| Opacity Slider | Adjust image transparency (0-100%) |
| Lock Icon | Toggle aspect ratio lock |
| Eye Icon | Toggle image visibility |
| Trash Icon | Remove the overlay |
| Key | Action |
|---|---|
| Arrow keys | Move overlay 1 px |
| Shift + Arrow keys | Move overlay 10 px |
| Backspace / Delete | Remove overlay |
| Cmd/Ctrl + V | Paste image from clipboard |