The client
Phantasoft S.R.L. is a software company whose applications needed to let users edit images without leaving the app.
The challenge
Rather than build image editing into each application separately, the Phantasoft team wanted a single editor it could embed in any of them. I was brought in as lead front-end developer to build it. The challenges were:
- One editor for many apps. It had to be self-contained, so it could be dropped into different applications without changing them.
- Everything in the browser. All editing had to happen client-side with HTML5, with no plugins or desktop software.
- A full toolset in a small space. Cropping, adjustments, filters and image sourcing had to fit in a compact interface that stays easy to use.
- Results the host app can use. The edited image had to be handed back to the application that opened the editor.
The solution
I built the complete editor in HTML5. Its interface pairs a tabbed sidebar, which holds the editing options, with a live image preview, so every change is visible as it is made.
- Crop: drag a selection on the preview or enter exact coordinates, width and height, with an optional locked aspect ratio.
- Image search: search the web for an image and load it straight into the editor.
- Adjustments: flip, flop and rotate, plus sliders for brightness, vibrance, hue, clip, blur, contrast, saturation and exposure.
- Filters: 18 one-click preset filters, such as Vintage, Lomo and Nostalgia, which can be stacked.
- Action history: every change is logged in a history panel, with undo and redo.
- Export: name the file, choose its format and download it, or confirm to return the result to the host application.
Technologies
- HTML5 and the Canvas API for in-browser image processing
- CamanJS for the image adjustments and preset filters
- JavaScript for the editor and its embeddable interface
- CSS for the tabbed sidebar and preview layout
Results
- One editor, many apps. The Phantasoft team could integrate the same editor into many of its applications instead of building image editing for each one.
- A complete toolset. Users get cropping, adjustments, filters, web image search and an undoable history without leaving the app they are working in.