GithubHelp home page GithubHelp logo

Comments (2)

AlfredoSequeida avatar AlfredoSequeida commented on May 29, 2024

@daviszerro Hey! Thank you for the suggestion, this could be a good addition, however, currently, the way venus pulls images is using https://source.unsplash.com/, and the URLs returned by that request look like this:

https://images.unsplash.com/photo-1602452605960-c46e781e1ecf?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=1080&ixlib=rb-1.2.1&q=80&w=1920

As far as I can tell, there is no image identifier there, which can point back to the original image source like the URL example you gave.

https://unsplash.com/photos/1602452605960
https://unsplash.com/photos/c46e781e1ecf
https://unsplash.com/photos/1602452605960-c46e781e1ecf

The above links, for example, don't point to anything regarding the original image source.

I also took a quick look at the HTML and network requests, and there does not seem to be any more information that could help there. So in order to get that feature to work, it would require changing the way images are fetched. I'm open to hearing any suggestions.

from venus.

daviszerro avatar daviszerro commented on May 29, 2024

I took a look at the browser plugin tabliss I used, which also has feature to fetch photos from Unsplash and has a refer link, they get the refer link like this
. It's not hard to read thanks for their code quailty.

Then I found the unsplash API they used, originally written here, do will return JSON info like this:

  "links": {
    "self": "https://api.unsplash.com/photos/Dwu85P9SOIk",
    "html": "https://unsplash.com/photos/Dwu85P9SOIk",
    "download": "https://unsplash.com/photos/Dwu85P9SOIk/download"
    "download_location": "https://api.unsplash.com/photos/Dwu85P9SOIk/download"
  },

I guess this is what we looking for?

from venus.

Related Issues (16)

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.