Git Product home page Git Product logo

Comments (4)

GregoryPotdevin avatar GregoryPotdevin commented on August 22, 2024

It looks like Unsplash allows hotlinking

Unlike most APIs, we prefer for the image URLs returned by the API to be directly used or embedded in your applications (generally referred to as hotlinking). By using our CDN and embedding the photo URLs in your application, we can better track photo views and pass those stats on to the photographer, providing them with context for how popular their photo is and how it’s being used.

So you could just pick 10-15 photo ids and generate the urls with the correct sizes :
Thumnbail : https://images.unsplash.com/photo-1457200246108-d9d4abc27953?dpr=2&auto=format&crop=entropy&fit=crop&w=120&h=120
Large size : https://images.unsplash.com/photo-1457200246108-d9d4abc27953?dpr=2&auto=format&w=1000

(thumbnails should have width and height set, as well as fit=crop if you want to crop. For full size images, just set the max width and remove the crop.

If you want I can do a quick PR with unsplash images to lighten the repo.

from react-images.

jossmac avatar jossmac commented on August 22, 2024

@GregoryPotdevin yes please! Let's stick with the current theme and use the Spirit Animals Collection

from react-images.

GregoryPotdevin avatar GregoryPotdevin commented on August 22, 2024

Perfect, thanks :)

from react-images.

GregoryPotdevin avatar GregoryPotdevin commented on August 22, 2024

Online demo : http://tamago.fr/react-images-unsplash/

Selected images :
image

from react-images.

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.