Skip to content

Berkanktk/Censora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Censora

A browser-based image censoring and redaction tool. Load a photo, mark the areas you want to hide, and export the result, all client-side, with no upload or server involved.

Features

  • Two censor tools: paint freely (Brush) or draw a rectangle (Box) over the areas you want to cover.
  • Three censor modes
    • Frost: a blurred, frosted-glass effect with adjustable blur strength, frost/glass intensity, and optional grain/noise to defeat de-blurring attempts.
    • Redact: a solid color bar with adjustable fill color, opacity, and corner radius.
    • Highlight: the inverse of censoring, dims and desaturates the rest of the image while popping the selected area forward in full clarity on a white card, for spotlighting instead of hiding.
  • Linked regions: optionally link all regions so changing a setting updates every censored area at once, instead of only the one being drawn.
  • Undo / redo / clear all for the full editing history.
  • Zoom controls with fit-to-view.
  • Photo metadata viewer/editor: inspect embedded EXIF data (including GPS), add or edit fields, strip all metadata, or export a JPEG with the edited metadata intact.
  • File info panel: quick view of the loaded image's name, size, dimensions, and type.
  • Drag-and-drop or click-to-browse image loading.
  • Export the censored image as a PNG.

Usage

Censora is a static site with no build step or dependencies.

  1. Open index.html in a browser (or serve the folder with any static file server).
  2. Load an image by dragging it into the drop zone or clicking to browse.
  3. Pick a tool (Brush or Box) and a mode (Frost, Redact, or Highlight), then draw over the relevant areas.
  4. Adjust the look using the controls in the sidebar.
  5. Click Save PNG to export the result.

Metadata can be reviewed and edited via the Metadata button on the image viewport.

Tech

Plain HTML, CSS, and JavaScript, no frameworks or build tooling. EXIF reading/writing is handled by an inlined copy of piexifjs. Everything runs locally in the browser; images are never uploaded anywhere.

Project structure

index.html   Markup and layout
styles.css   Styling
script.js    Editing logic, canvas rendering, and EXIF handling

About

A browser-based image censoring and redaction tool.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages