Show HN: Snowy – a new image library for Python
github.prideout.net
github.prideout.net
img = img.resize(...).blur(....).hflip()That said, I don't claim to be a clever man.
BTW, as an addition to my original comment, a good example of reinventing types are the litany of C++ libraries that do NOT use the STL but reinvent half of it.
img = ...
img.resize(...)
img.blur(....)
img.hflip()I think this is an edge case that is always going to feel inelegant, so whatever makes it easiest to load into my head wins out.
(Edit: There is in fact: https://github.prideout.net/snowy/reference.html#load , haven't noticed, very good!)
See also https://github.prideout.net/snowy/index.html#interop
ImageMagick is much bigger, more powerful, and more production ready. Snowy is hopefully a bit more Pythonic and easy to play with.
I think graphics developers like myself would be interested; people who work with distance fields, tileable images, HDR imagery, and height map data.
Maybe a technical artist at an animation studio would be interested, or someone working with map imagery.
It's not quite apples to apples because Snowy offers a variety of filters, does everything in fp64, and is purely written in Python.
icon = snowy.load('snowflake.png')
icon = snow.resize(snowflake, height=100)
sunset[:100,200:300] = snowy.compose(sunset[:100,200:300], icon)
snowy.show(sunset)
Pretty sure you meant to say on line 2 `icon = snowy.resize(icon, height=100)`I could see myself using this in the future.
PythonLib: Image is Numpy Matrix