diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..8a4f903 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,2 @@ +Jonas Obrist +Kristian Oellegaard diff --git a/notes.txt b/notes.txt index 30366b5..90a6157 100644 --- a/notes.txt +++ b/notes.txt @@ -5,3 +5,5 @@ pypy guys recommended using a flat array instead of list of array for pixels need to change png reader/writer to just be optimized for whatever pixel format we use and not just wrap the existing library. +bilinear filtering in python: http://stackoverflow.com/questions/8661537/how-to-perform-bilinear-interpolation-in-python + diff --git a/notpil/operations/geometry.py b/notpil/helpers.py similarity index 100% rename from notpil/operations/geometry.py rename to notpil/helpers.py diff --git a/notpil/image.py b/notpil/image.py index 14fbbbb..dd3a834 100644 --- a/notpil/image.py +++ b/notpil/image.py @@ -1,8 +1,7 @@ # -*- coding: utf-8 -*- from notpil.exceptions import FormatNotSupported from notpil.formats import get_format, get_format_objects -from notpil.incubator import geometry as incubator_geometry -from notpil.operations.geometry import Fliprow +from notpil.helpers import Fliprow from notpil.utils import get_pixel import array import os @@ -53,7 +52,7 @@ def save_to_path(self, filepath, format=None): # Geometry Operations #========================================================================== - def resize(self, width, height): + def resize(self, width, height, algorithm=Nearest): raise NotImplementedError() target = Image.empty(width, height, self.mode) incubator_geometry.resize(target, self, incubator_geometry.nearest_filter) diff --git a/notpil/operations/__init__.py b/notpil/operations/__init__.py deleted file mode 100644 index e69de29..0000000