Comments (12)
Thanks, I will definately look into this tomorrow.
On Sun, May 10, 2015 at 9:45 PM, Adam Baxter [email protected]
wrote:
Posted as a HN comment but thought it might worth an issue -
SVG cards might reduce bandwidth use for you and clients -
https://code.google.com/p/vectorized-playing-cards/For example, 8 of Clubs is:
28kb as a PNG.
14kb as an SVG (from above set)
4kb as a gzipped SVG
—
Reply to this email directly or view it on GitHub
#2.
from deckofcards.
I've been looking at these files. I haven't ever studied up on what SVG's even are until today. All the ones that I have downloaded from the link don't look like they are cropped correctly.
from deckofcards.
Someone else had this issue - https://shkspr.mobi/blog/2013/03/inkscape-cropping-svg-files-on-the-command-line/
from deckofcards.
Maybe have the option of choosing between PNG and SVG? Loading SVGs on iOS is really not fun :P
from deckofcards.
+1 for choosing between png and svg! Picaso image loader is a great tool, but useless with svgs.
from deckofcards.
Using the Accept: header would be a good way of switching between file
types. You could even render PNGs on the fly
On 13 May 2015 1:01 am, "Theodoros Delis" [email protected] wrote:
+1 for choosing between png and svg! Picaso image loader is a great tool,
but useless with svgs.—
Reply to this email directly or view it on GitHub
#2 (comment)
.
from deckofcards.
Switching on the Accept header is foreign to me.
I don't really like the idea of listing multiple image urls as it just clutters the response. Would there be a way to make both image types available and without returning two image urls in the response?
I am starting to wonder if it would be easier to just switch back to PNG?
from deckofcards.
Back to PNG! (Unless thats going to upset more people than it will please...)
from deckofcards.
Switching on the Accept: header would be the "RESTful" thing to do, you
could also use the file extension or a &format= parameter.
...or go back to PNG :P
On 13 May 2015 at 07:03, Chase Roberts [email protected] wrote:
Switching on the Accept header is foreign to me.
I don't really like the idea of listing multiple image urls as it just
clutters the response. Would there be a way to make both image types
available and without returning two image urls in the response?
I am starting to wonder if it would be easier to just switch back to PNG?—
Reply to this email directly or view it on GitHub
#2 (comment)
.
from deckofcards.
I moved the default to PNG for now..
When I say it's foreign to me, what I mean is that I have no idea how to do it. What parameter should I look for in the accept header?
from deckofcards.
You'd look for a MIME type in the header, so the client would ask for
image/png or image/svg+xml
On 13 May 2015 8:39 am, "Chase Roberts" [email protected] wrote:
I moved the default to PNG for now..
When I say it's foreign to me, what I mean is that I have no idea how to
do it. What parameter should I look for in the accept header?—
Reply to this email directly or view it on GitHub
#2 (comment)
.
from deckofcards.
Thanks for the PNG support!
from deckofcards.
Related Issues (20)
- Add image: Back of card HOT 1
- add copy button on the website to copy the links HOT 3
- Not able to add Jokers to hand. HOT 4
- Add cards back into deck & Also shuffle existing deck HOT 9
- no image of the cards back HOT 3
- Remove specific cards from a deck HOT 1
- Border of deck back image
- Last card not drawn when drawing multiple specific cards from Pile. HOT 3
- Ace of Diamonds image blocked HOT 2
- Draw n cards and reshuffle between every request HOT 2
- Sometimes card shuffle doesnt work HOT 4
- Is the API server down? HOT 1
- Deck of Cards Api is not working HOT 1
- Clipboard copy not working HOT 2
- Shuffle a number of negative decks HOT 4
- One endpoint from "Drawing from Piles" is broken
- Adding to Piles method does not work HOT 1
- Remaining cards appears wrong after drawing cards HOT 2
- CORS policy issue
- Adding cards to pile only works with repeated cards
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deckofcards.