PhotoEditor is an Android library for in-app image editing similar to story-style apps. Apps embed PhotoEditorView and a PhotoEditor builder to offer drawing, filters, text, emoji, and stickers.
Overview
PhotoEditor targets Android developers who need story-like image editing inside their own apps. It supports paints, text, filters, emoji, stickers, and image overlays on a canvas with pinch-to-scale and rotate gestures.
Consumers add the dependency from Maven Central or import the module for deeper customization. Setup centers on a PhotoEditorView in XML layout and a PhotoEditor instance configured with options such as pinchable text, clip-to-source drawing, and default typefaces.
Drawing mode exposes brush color, size, opacity, eraser, and basic shapes via a shape builder. Filters use MediaEffect presets or custom effect builders. Text and emoji can use custom fonts and positions; stickers accept bitmap images.
The library provides undo and redo, view deletion via on-canvas controls, and saving edited images to files from Kotlin coroutines or Java callbacks. It is Kotlin-based in current releases, with earlier Java-compatible versions noted in migration guides.
Key features
- Brush drawing with shapes and eraser
- Photo filter effects
- Editable text with custom fonts
- Emoji with custom typefaces
- Sticker and bitmap overlays
- Undo and redo for edits
- Pinch scale and rotate views
- Save edited images to files
Use cases
- Stories-style editing in social apps
- In-app photo markup features
- Instagram-like filter workflows
- Quick mockups before sharing images
- Embed editing without building from scratch