Re:Dependency
by ALittleLight on Tuesday August 18, 2020 @02:35AM
(#24195864)
Isn't it super easy to resize images? I wrote a program to resize images after watching a computerphile video on the subject and it took like ten to twenty minutes to get something that seems functionally identical to "real" resizing. If you can read your image as a two dimensional array of bytes you can resize easily enough.
[ Parent
| on HN ]
If you only want bilinear and nearest-neighbor, yes.
Lanczos is much less easy to write, and is even harder to make it run fast.
And there are things like subpixel positioning (it is way too easy to make resizer that shift image by 0.5 pixel)
Add on top of that correct gamma and color space handling...