Skip to content
Snippets Groups Projects
README.md 1.02 KiB
Newer Older
nick87720z's avatar
nick87720z committed
Scripts for analogue-like high quality image display, as if it was captured
by ideal camera.

img-downscale-rgb.sh - 3x downscale for horizontal display layout.
nick87720z's avatar
nick87720z committed

nick87720z's avatar
nick87720z committed
img-fft-resynth.sh - high quality rescale using FFT transformation

Typical sequence:
1. Match image size to 3x displayed size, using img-fft-resynth
2. Downscale to subpixel layout
nick87720z's avatar
nick87720z committed
3. View with 1:1 scale
4. PROFIT)
nick87720z's avatar
nick87720z committed

Note: Even 3x fft upscale with 3x rgb downscale make smoother look due to how fft conversion works.

Warning:
FFT resynth performs very slow if tmpdir is located on slow media. Placing it in tmpfs gives best speed, but may be risky, as imagemagick can easily run out of memory for too big images (I would usually interrupt it before system becomes unresponsive, forcing me to do it anyway).

nick87720z's avatar
nick87720z committed
Requirements:
nick87720z's avatar
nick87720z committed
- POSIX shell
nick87720z's avatar
nick87720z committed
- coreutils
- bc
nick87720z's avatar
nick87720z committed
- imagemagick
- lots of RAM and/or patience for too big input images (imagemagick fft filter feature)
nick87720z's avatar
nick87720z committed

nick87720z's avatar
nick87720z committed
Could be adapted to almost any layout (even 2x2, if you find, how to map color components from each subpixel to even sized grid).