Skip to content
Nat Lee

Keyboard shortcuts

Turn these off if they get in the way of a screen reader or voice control. The setting is saved in this browser.

1
Home
2
Projects
3
About
4
Experience
/
Search projects
?
Show this panel

Utilities

HEIC2PNG

Image Format Converter

Turns iPhone HEIC photos into PNG from the CLI, a shell pipe or Python. A small tool for a small, recurring annoyance.

Role
Creator & Maintainer
Period
2019 – 2026.11
Status
Completed
Theme
Libraries & tools
HEIC2PNG, screenshot 1

Overview

Convert iPhone HEIC photos to PNG or JPEG through Python, a CLI or shell pipes. A Pillow / pillow-heif implementation handles transparency, with explicit quality controls for PNG palette reduction and JPEG output.

Features

  • PNG and JPEG output
  • CLI, Python API and shell-pipe input/output
  • Batch conversion and transparency handling
  • Explicit output-quality controls
  • Libraries & tools7070 stars on GitHub

    Blur-Generator

    Makes perfectly good images worse on purpose: motion, lens, Gaussian and depth-aware blur, for training models that have to cope with bad photos.

    2019Completed
  • Libraries & tools7676 stars on GitHub

    batch-crop-images

    Draw a crop box once and it is applied to a whole folder of similar images. Written because I refused to crop them one by one, and apparently other people refused too.

    2019Completed
  • Libraries & tools11 stars on GitHub

    playwright-snap

    Render a page with Playwright and return a PNG or PDF as base64. Moving from pyppeteer-snap takes a one-line import change.

    2026Completed