News for hackers. Stuff that matters.
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.
Re:Dependency by innocenat on Tuesday August 18, 2020 @07:00AM (#24197254)
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)

Re:Dependency by account42 on Tuesday August 18, 2020 @08:56AM (#24198014)
Add on top of that correct gamma and color space handling...
Re:Dependency by prerok on Tuesday August 18, 2020 @03:23AM (#24196094)
The power of ImageMagick is when you need to support multiple formats. Resizing BMP is easy, the hard part is supporting the various ways that data is encoded.