PIL: Python Image Library: https://github.com/python-pillow/
Written by Fredrik Lundh(https://groups.google.com/g/dev-python/c/fbv5gWgaGpM?pli=1)
image resize algorithm
- https://en.wikipedia.org/wiki/Image_scaling
- https://en.wikipedia.org/wiki/Affine_transformation#Examples
- affine transformation scaling
- Please refer to "scale about image" image
- https://en.wikipedia.org/wiki/Bicubic_interpolation
- Pillow(PIL) Image resize NEAREST behavior differs depending on the version
- Resizing Images With Bicubic Interpolation
Image.resize(...)
option: Image.NEAREST, Image.BICUBIC, Image.BILINER, ...
src/_imaging.c
static PyObject * _resize(ImagingObject *self, PyObject *args)
src/libLmanging/Geometry.c
ImagingTransform(...)
No comments:
Post a Comment