Skip to content

Instantly share code, notes, and snippets.

View Davr1's full-sized avatar

Davri Davr1

  • 02:29 (UTC +01:00)
View GitHub Profile
@Davr1
Davr1 / gamma_trick.bat
Last active November 12, 2023 18:42 — forked from marcan/gamma_trick.sh
Two images in one using the PNG gamma header trick.
@echo off
rem PNG Gamma trick (by @marcan42 / [email protected])
rem
rem This script implements an improved version of the gamma trick used to make
rem thumbnail images on reddit/4chan look different from the full-size image.
rem
rem Sample output (SFW; images by @Miluda):
rem https://mrcn.st/t/homura_gamma_trick.png
rem https://www.reddit.com/r/test/comments/6edthw/ (click for fullsize)
rem https://twitter.com/marcan42/status/869855956842143744