Git Product home page Git Product logo

Comments (4)

lehitoskin avatar lehitoskin commented on May 31, 2024 1

Also, according to the docs, we can tell raco to set the incs rather than having us moving them inside the .app ourselves: raco exe --icns ‹.icns-path›

from ivy.

audreytoskin avatar audreytoskin commented on May 31, 2024

@IonoclastBrigham
Does OS X actually require using the @2x file naming scheme? I'm mostly familiar with with the use of @2x file names when applying the principles of "responsive design" to images in a web page. And in that case, I think the new HTML5 standards (the srcset attribute or the picture element) offered a better, more flexible solution. I don't like how @2x treats the lower resolution as the standard base -- even smart phones are starting to get high-density screens -- and I kind of think using @2x in the filename just looks weird.

I do like the idea of using ImageMagick (or possibly GraphicsMagick) to take care of exporting the SVG at different sizes. Adding a build requirement will be less of an issue when we add binary packages, right?

from ivy.

IonoclastBrigham avatar IonoclastBrigham commented on May 31, 2024

1.0 was just released as binary packages for windows, linux, and os x. So yeah, the build dependency is irrelevant for the average user. And anyone who can install racket and build ivy from source likely already has ImageMagick installed. This is probably okay.

To your point, Mac and iOS apps can bundle copies of their raster assets with @2x and @3x variants for higher-density screens. This is equivalent to the drawable-Xdpi directory structure, for Android apps. It's not strictly necessary, as the system will try to pick the best version available, and scale it if needed. But it could potentially look kinda janky, so if you want control over how it looks, you provide them.

Alternatively, we might be able to use a vector version directly, though it might need to be exported from svg to some intermediate format. I know a lot of iOS/OS X graphics get packaged up as PDFs, but I'm not sure you can do that kinda thing with app icons.

from ivy.

lehitoskin avatar lehitoskin commented on May 31, 2024

Update: read-bitmap has the optional keyword argument #:try-@2x?

from ivy.

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.