TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Snowy – a new image library for Python

124 pointsby prideoutover 6 years ago

7 comments

nooberminover 6 years ago
Massive opinionated opinion ahead: I like libraries that don't invent new types but just build around established ones. I think it's great that it uses numpy arrays and doesn't venture to (essentially) wrap an array of some kind and reinvent the wheel.
评论 #17921514 未加载
评论 #17923504 未加载
ktpsnsover 6 years ago
Something I would miss as a user is interoperability. There should be ways to read from&#x2F;export to numpy arrays, pytables, PIL, OpenCV, ImageMagick, basically all the mentioned and widespread libraries so far.<p>(Edit: There is in fact: <a href="https:&#x2F;&#x2F;github.prideout.net&#x2F;snowy&#x2F;reference.html#load" rel="nofollow">https:&#x2F;&#x2F;github.prideout.net&#x2F;snowy&#x2F;reference.html#load</a> , haven&#x27;t noticed, very good!)
评论 #17920312 未加载
评论 #17924881 未加载
jhareover 6 years ago
What&#x27;s the overlap with ImageMagick and its pals? This meant to replace or just be a smaller-tool-for-the-job?
评论 #17919912 未加载
staticautomaticover 6 years ago
Neat. How does it benchmark against PIL and OpenCV for common image processing tasks?
评论 #17919857 未加载
firefwing24over 6 years ago
Under Alpha Composition<p><pre><code> icon = snowy.load(&#x27;snowflake.png&#x27;) icon = snow.resize(snowflake, height=100) sunset[:100,200:300] = snowy.compose(sunset[:100,200:300], icon) snowy.show(sunset) </code></pre> Pretty sure you meant to say on line 2 `icon = snowy.resize(icon, height=100)`
评论 #17920379 未加载
supernintendoover 6 years ago
Well done! Some commenters have compared this to ImageMagick. I would equate this to comparing love2d [1] to SDL. If you want a user-friendly API for quick image manipulation, use Snowy. If Snowy doesn&#x27;t give you the level of control you need, use something like ImageMagick or vips.<p>I could see myself using this in the future.<p>[1] <a href="https:&#x2F;&#x2F;love2d.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;love2d.org&#x2F;</a>
Sileniover 6 years ago
Would you mind defining a primary use case for this as opposed to PIL, ImageMagick or OpenCV? For the purposes of saving a description with the website.
评论 #17921715 未加载
评论 #17922611 未加载