A simple, browser-based image editor with annotation tools, HEIC support, and intuitive shape manipulation.
- Standard formats: JPEG, PNG, GIF, WebP
- HEIC/HEIF support: iPhone photos work seamlessly
- Automatic conversion: HEIC files are converted to JPEG in your browser
- Privacy-focused: No files uploaded to servers
- Flexible loading: Open files, drag and drop, or paste from clipboard
- Rectangle: Click and drag to draw rectangles
- Ellipse: Click and drag to draw circles/ovals
- Arrow: Click and drag to draw arrows with arrowheads
- Text: Click anywhere to add text annotations
- Select tool: Click to select shapes
- Drag & drop: Move selected shapes by dragging
- Rotation handles: Rotate shapes and text with the green handle
- Shape cycling: Click multiple times on overlapping shapes to cycle through them
- Smart selection: Drag to move, click to cycle
- Ctrl+Z (or Cmd+Z): Undo last action
- Ctrl+V (or Cmd+V): Paste image from clipboard
- Delete/Backspace: Delete selected shape
- Escape: Deselect current shape
- Color picker: Choose any color for your annotations
- Size slider: Adjust line thickness (1-20px)
- Undo button: Remove last shape added
- Delete button: Remove selected shape
- Clear button: Remove all annotations (keeps image)
- Download: Save your edited image as PNG
You can load images in three convenient ways:
- Click the "Open" button in the File section
- Select any image file (JPEG, PNG, GIF, WebP, HEIC)
- The image will load and scale to fit the canvas
- Drag an image file from your file explorer
- Drop it anywhere on the canvas area
- The image will be loaded automatically
- Visual feedback shows a blue dashed border when dragging over the canvas
- Copy an image to your clipboard (from another application or file)
- Click on the editor window to focus it
- Press Ctrl+V (or Cmd+V on Mac) to paste
- The image will be loaded automatically
Note: For HEIC files, conversion to JPEG happens automatically in all methods
-
Select a tool from the toolbar:
- Select: For moving and editing existing shapes
- Rectangle: Draw rectangles
- Ellipse: Draw circles/ovals
- Arrow: Draw arrows
- Text: Add text labels
-
Choose your settings:
- Pick a color using the color picker
- Adjust line thickness with the size slider
-
Draw your shapes:
- Rectangle/Ellipse/Arrow: Click and drag to draw
- Text: Click where you want text, then type in the prompt
- Click on any shape to select it
- Selected shapes show with a green dashed border
- If shapes overlap, click multiple times to cycle through them
- Select a shape, then drag it to move
- The shape follows your mouse cursor
- Select a shape to see the green rotation handle
- Drag the green handle to rotate the shape
- A dashed line shows the rotation center
- Select a shape, then press Delete or Backspace
- Or use the Delete button in the toolbar
- Undo: Press Ctrl+Z or use the Undo button
- Clear: Use the Clear button to remove all annotations
- Download: Click Download to save your work as a PNG file
- First click: Selects the topmost shape
- Subsequent clicks: Cycle through all shapes at that point
- Drag to move: If you drag after clicking, it moves the shape instead of cycling
- iPhone photos: Work perfectly - just select and load
- Automatic conversion: Happens in your browser, no upload needed
- Quality: High-quality JPEG conversion
- Troubleshooting: If HEIC doesn't work, try refreshing the page
- Ctrl+Z: Undo mistakes quickly
- Delete: Remove unwanted shapes
- Click + Drag: Move shapes precisely
- Click + Click: Cycle through overlapping shapes
- Full height: Editor uses most of your screen
- Auto-resize: Canvas adjusts to your window size
- Mobile-friendly: Works on tablets and phones
- Chrome: Full support
- Firefox: Full support
- Safari: Full support
- Edge: Full support
- Mobile browsers: Works on iOS Safari and Chrome Mobile
- Uses the
heic2anylibrary for client-side conversion - No server processing required
- Maintains image quality during conversion
- Responsive scaling: Images automatically fit the canvas
- Coordinate conversion: Handles different screen densities
- Smooth drawing: Real-time preview while drawing
- Refresh the page and try again
- Check JavaScript: Make sure JavaScript is enabled
- Try a different file: Some HEIC files may be corrupted
- Use a modern browser: Chrome, Firefox, Safari, or Edge
- Make sure you're in Select mode (first radio button)
- Click directly on the shape (not the background)
- Try clicking multiple times if shapes overlap
- Select the shape first (green border should appear)
- Look for the green handle (small circle with dashed line)
- Drag the handle to rotate
- Check browser permissions for file downloads
- Try a different browser if the issue persists
- Make sure you have an image loaded
image_editor/
βββ index.html # Main application file
βββ README.md # This file
The editor is built as a single HTML file with embedded CSS and JavaScript. To customize:
- Colors: Modify the CSS variables in the
<style>section - Tools: Add new drawing tools in the JavaScript section
- Shortcuts: Modify the keyboard event handlers
- UI: Adjust the HTML structure and CSS styling
This is a simple, open-source image editor. Feel free to use, modify, and distribute as needed.
Happy editing! π¨β¨