Skip to content

nick87720z/analogue-image-scaler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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
  3. View with 1:1 scale
  4. PROFIT)

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).

Requirements:

  • POSIX shell
  • coreutils
  • bc
  • imagemagick
  • lots of RAM and/or patience for too big input images (imagemagick fft filter feature)

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages