Card artwork options and licences
Research for shipping card art in the SwiftUI and Compose apps, possibly on the App Store and Google Play. Checked 2026-11-18 against the actual repos and pages. Not legal advice. No third-party assets are in this repo yet.
Needs: 52 cards, jokers (Canasta uses 4 per two-deck game, so 2 designs), card backs (2, one per deck), vector, large indices for older players, ideally a four-colour variant, and a licence with no copyleft on our code.
Recommendation
- Primary: Saul Spatz, SVGCards (
github.com/saulspatz/SVGCards, also OpenGameArt “Jumbo Index Playing Cards”). Jumbo corner indices, 52 cards + 2 jokers + 2 backs, two-colour, four-colour and “Accessible” (higher-contrast four-colour) variants, vertical or side-by-side index. Public domain, no attribution needed. - Fallback: draw the cards in code (rank text + suit paths, big letter in a frame for J/Q/K, no court art), with MIT suit paths from Bootstrap Icons. Zero provenance risk, smallest app, fully scalable, also fixes the court-art weaknesses below. Use it if the primary’s upstream provenance worries us before launch.
- Avoid LGPL sets (Aguilar, SVG-cards) and anything CC BY-SA, see “Licence notes”.
Comparison
| Candidate | Licence (verified source) | Format | Jokers / backs | Complete | Look | Last update | Size |
|---|---|---|---|---|---|---|---|
| saulspatz/SVGCards | README: “Everything in this repository has been placed by the author in the public domain.” SVGs carry CC0 metadata. No LICENSE file. OGA page: CC0. | SVG per card + sprite, 210x315 | 2 jokers, 2 backs (red, blue) | 52, yes | Knoll courts, big indices, 4-colour + accessible | 2022-01 | ~16.5 MB SVG per variant (courts 0.3-1 MB each) |
| notpeter/Vector-Playing-Cards (Byron Knoll) | README: “released into the public domain, or optionally licensed under the WTFPL … embed in commercial … software.” Knoll’s 2011 blog: “I am releasing the images into the public domain … without any attribution”. Commons: “released into the public domain by its author”. | SVG per card, 167x243 pt | 2 jokers, no back | 54 files, yes | Classic Bicycle-style courts, small indices | repo 2026-10 (art 2011) | 8.2 MB total, KH 775 KB |
| htdebeer/SVG-cards (David Bellot) | LGPL-2.1 (LICENSE file). Bellot: “as long as you provide the code source and the LGPL license … you can use this set of cards even in a non-free software.” | one sprite SVG (<use>), 963 KB |
jokers + backs | yes | French-style courts, pleasant | 2026-08 | 0.96 MB |
| Chris Aguilar, Vectorized Playing Cards (totalnonsense.com) | “can be used without cost when used in compliance with the open source LPGL 3.0 License”. Paid “Non-Attribution” option. | SVG | 3 jokers, several backs | yes | Polished, several colour styles | 2019 (v3) | n/a |
| revk (Adrian Kennard) generator, codeberg.org/RevK/SVG-playing-cards | 2018 post: “completely open Creative Commons CC0 Public Domain licence”. Repo LICENSE today is GPL-3 (covers the C generator; the card output claim is not restated in the repo). | SVG, generated by a C program | 2 jokers, backs | yes | Hand-traced Goodall courts, many options incl. 4-colour, no-index | 2026-10 | repo 59 MB, court SVGs 0.3-12 MB |
| OGA “Classic 4-Color Poker Deck” (Heratexx) | CC0 (OGA page) | SVG | none | 52 | Plain pips, no courts; a commenter notes off-centre suits | 2026-04 | 213 KB |
| cardmeister | Unlicense | JS custom element with SVG data | not checked | 52 | Compact, not designed for large indices | 2026-04 | 500 KB |
| Kenney Playing Cards Pack | CC0 | Mostly pixel PNG; vector file not confirmed in zip | n/a | n/a | Pixel art | - | - |
| Commons “English pattern” | Not found as a complete SVG deck; individual files carry mixed licences (CC BY-SA common) | - | - | - | - | - | - |
Not checked in depth: OGA “cards set” (CC0, six backs claimed), Youness Touati npm deck (page blocked).
Provenance caveats on the primary
- Courts come from Byron Knoll (2011). Knoll’s blog says he drew most of it himself, except the Ace of Spades, based on
Suzanne Tyson’s raster art that he traced. An OGA commenter doubts Tyson’s status and others say the courts follow
1800s Bicycle designs. SVGCards
spadeAce.svgis 6.6 KB (Knoll’s is 24 KB), so it looks redrawn, but check it. If unsure, replace the Ace of Spades with a code-drawn one. - Saul credits the jokers to “Brian Kroll”; Commons lists Byron Knoll as author of
Black_joker.svg. The joker lettering is live text in a font (URW Chancery L). Outline it, or redo the joker word in our own font. - Backs come from openclipart.org (public domain by their terms). We can also draw our own backs, trivial in code.
- Card text (rank letters) is live
<text>in all SVGs and must be converted to outlines before shipping. - My previews used ImageMagick’s internal renderer, which drew black rectangles where pips and courts belong. That is a renderer limit; re-check every card with resvg or Inkscape before accepting.
- The courts are detailed and heavy (up to 1 MB per SVG). Raster them for Android (below).
Licence notes
- Public domain / CC0 / WTFPL: no obligations. Courtesy credit only.
- LGPL-3.0 (Aguilar) and LGPL-2.1 (SVG-cards): not copyleft on our app code in the usual sense, but they are software licences applied to artwork. Obligations: ship the licence text and notices, credit the author, give recipients the artwork source, allow modification. LGPL-3 section 4 and LGPL-2.1 section 6 add relink / installation-information duties for “combined works” in a user product, which clash with App Store DRM. Whether bundled images count is untested. The risk is low but real, and avoidable with the sets above.
- CC BY-SA 4.0 (e.g. most Commons artwork): adaptations (crop, recolour, vector conversion) must be CC BY-SA, and 4.0 section 2(a)(5)(C) forbids technological measures that restrict the licence rights, which App Store encryption arguably is. Our code would not become CC BY-SA, but the card images would, with attribution. Avoid. Note the Commons category page for Knoll says its page text is CC BY-SA 4.0; that is the wiki text, not the images.
- GPL-3 (revk repo): applies to the generator code. Get the author’s explicit CC0 confirmation for any output we ship.
Attribution text
Primary (not required, recommended in Settings > About):
Card artwork: public-domain vector playing cards by Byron Knoll (2011), adapted as jumbo-index decks by Saul Spatz (SVGCards, CC0). Card backs from openclipart.org (public domain).
Fallback (MIT requires the notice to travel with copied paths):
Suit shapes from Bootstrap Icons, Copyright (c) 2019-2024 The Bootstrap Authors, MIT License.
Put the MIT licence text in an in-app licences screen. Keep a assets/cards/LICENSES.md with source URLs and commit hashes.
Drawing cards in code
- Suits: SF Symbols has
suit.spade.fill,suit.heart.fill,suit.diamond.fill,suit.club.fill(shown with SF Symbols 3, so likely iOS 15+; confirm in the SF Symbols app). They are Apple-licensed, usable only on Apple platforms, so Android would still need its own shapes. Material Symbols (Apache-2.0) has no spade or club; onlydiamond(a gem),favorite(heart) andplaying_cards. Unicode U+2660-2667 render as colour emoji on some devices. - Use one shared set of four suit paths (Bootstrap Icons
suit-*-fill.svg, MIT, 16x16 viewBox, single path each), converted to a SwiftUIShapeand a ComposePath. Same look on both platforms, any colour scheme. - Rank text: system font at jumbo size, bold, with Dynamic Type / font-scale support.
- Courts: big letter in a coloured frame (simple), or later drop Knoll’s court images on top of the same frame.
Asset layout (when we add them)
assets/cards/src/ untouched upstream SVGs (SVGCards Accessible/Vertical), plus LICENSES.mdassets/cards/build.sh cleans, outlines text, writes both platform outputsassets/cards/out/ git-ignoredswift/.../Assets.xcassets/Cards/*.imageset PDF, "Preserve Vector Data", one imageset per cardkotlin/.../res/drawable-nodpi/ VectorDrawable XML (pips) and WebP (courts)Name files {rank}{suit} (AS, 10H, JOKER_R, BACK_BLUE) to match the spec’s card ids.
Tools:
- Outline text:
inkscape --export-text-to-path --export-plain-svg(Inkscape 1.x CLI). - Optimise:
svgo(MIT). - iOS:
rsvg-convert -f pdf(librsvg) orinkscape --export-type=pdf. Recent Xcode also accepts SVG in asset catalogs, but PDF is more predictable for gradients and clip paths. - Android pips and indices: Android Studio Vector Asset Studio (or the
vd-tool/svg2vectorit wraps). VectorDrawable suits simple shapes; it has no text or filters, and huge court paths render slowly. - Android courts: rasterise with
resvg -w 840thencwebp -q 90intodrawable-nodpi, one size, scaled in Compose. - Fallback (code-drawn): no conversion, only the four suit paths.
Size estimate (not measured): 12 court cards total a few MB as PDF or WebP; the other 40 cards are tiny.