GithubHelp home page GithubHelp logo

Comments (12)

crobertsbmw avatar crobertsbmw commented on September 27, 2024

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.

crobertsbmw avatar crobertsbmw commented on September 27, 2024

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.

 avatar commented on September 27, 2024

Someone else had this issue - https://shkspr.mobi/blog/2013/03/inkscape-cropping-svg-files-on-the-command-line/

from deckofcards.

harkmall avatar harkmall commented on September 27, 2024

Maybe have the option of choosing between PNG and SVG? Loading SVGs on iOS is really not fun :P

from deckofcards.

theodorosD avatar theodorosD commented on September 27, 2024

+1 for choosing between png and svg! Picaso image loader is a great tool, but useless with svgs.

from deckofcards.

 avatar commented on September 27, 2024

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.

crobertsbmw avatar crobertsbmw commented on September 27, 2024

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.

harkmall avatar harkmall commented on September 27, 2024

Back to PNG! (Unless thats going to upset more people than it will please...)

from deckofcards.

 avatar commented on September 27, 2024

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.

crobertsbmw avatar crobertsbmw commented on September 27, 2024

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.

 avatar commented on September 27, 2024

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.

theodorosD avatar theodorosD commented on September 27, 2024

Thanks for the PNG support!

from deckofcards.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.