diff --git a/jaraco/imaging.py b/jaraco/imaging/__init__.py similarity index 98% rename from jaraco/imaging.py rename to jaraco/imaging/__init__.py index d73dd08..e5bfba6 100644 --- a/jaraco/imaging.py +++ b/jaraco/imaging/__init__.py @@ -3,16 +3,17 @@ """ import argparse +import functools import io -import struct import operator -import functools +import struct from collections import namedtuple import PIL.Image -import jaraco.clipboard from importlib_resources import files +import jaraco.clipboard + def calc_aspect(size): "aspect = size[0] / size[1] # width/height" @@ -58,7 +59,7 @@ def resize_with_aspect(image, max_size, *args, **kargs): def load_apng(): - apng = files('jaraco') / 'sample.png' + apng = files() / 'sample.png' return PIL.Image.open(io.BytesIO(apng.read_bytes())) diff --git a/jaraco/sample.png b/jaraco/imaging/sample.png similarity index 100% rename from jaraco/sample.png rename to jaraco/imaging/sample.png