Skip to content

Instantly share code, notes, and snippets.

View twkwcheng's full-sized avatar
🎯
Focusing

Kevin Cheng twkwcheng

🎯
Focusing
View GitHub Profile
@twkwcheng
twkwcheng / gimp-whiteboard.md
Created November 1, 2020 03:36 — forked from adsr303/gimp-whiteboard.md
Clean-up a whiteboard photo with GIMP

How to clean up a whiteboard photo using GIMP

Skipping other possible actions, such as perspective corrections, here is how:

  1. Duplicate the base image layer.
  2. Set the new layer's mode to "Divide".
  3. Apply a Gaussian blur with a radius of about 50 (Filters/Blur/Gaussian Blur...).

If you need to manipulate the resulting image further, create a new layer from visible (Layer/New from Visible).

@twkwcheng
twkwcheng / whiteboardCleaner.md
Created October 6, 2019 07:06 — forked from lelandbatey/whiteboardCleaner.md
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results