News for hackers. Stuff that matters.
Re:Show HN: Deck of Cards – A playing card API by voltagex_ on Sunday May 10, 2015 @11:36PM (#9522558)
I wonder if returning SVG would be possible - https://code.google.com/p/vectorized-playing-cards/

Edit: Could be an excellent idea - 8 of Clubs is:

* 28kb as a PNG.

* 14kb as an SVG

* 4kb as a gzipped SVG

Re:Show HN: Deck of Cards – A playing card API by polshaw on Monday May 11, 2015 @07:46AM (#9523958)
I used the unicode symbols; ♠ etc for my game; http://playonline.cards

It was a bit fiddly but definitely wins on file size. I would have used SVG for the face cards but they really killed performance with animation unfortunately, so I went with a compressed PNG (20kb for all 3).

Re:Show HN: Deck of Cards – A playing card API by Everlag on Monday May 11, 2015 @01:46AM (#9522935)
Thought about that as soon as I saw it returning rasters. SVG would be best offered alongside as an option; it requires more effort to use than just a png. Perhaps a 'vector' to accompany each 'image'?
Re:Show HN: Deck of Cards – A playing card API by voltagex_ on Monday May 11, 2015 @03:27AM (#9523205)
Accept: headers. Default to image/png
Re:Show HN: Deck of Cards – A playing card API by evv on Monday May 11, 2015 @02:14AM (#9523012)
Those cards look great! Much better than the OP's raster images.

But they seem familiar. I can't help but wonder, are they infringing on any copyrights?

Re:Show HN: Deck of Cards – A playing card API by jessaustin on Monday May 11, 2015 @12:05PM (#9525716)
Following that link, the first section on the page:

These poker sized cards have been created and hand optimized in various vector formats (.eps and .svg) using the open source .svg graphics editor Inkscape http://www.inkscape.org.

....

Generally, this means the cards are free to use (commercially and non commercially) but must be properly attributed (see "README.txt" file) and (The library itself, not your project) re-distributed only under the same license.