4 ms·
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 minu
by ALittleLight 6y ago
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.
- prerok 6y agoThe 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.
- innocenat 6y agoIf 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)
- account42 6y agoAdd on top of that correct gamma and color space handling...