GithubHelp home page GithubHelp logo

type for image sites about iframely HOT 4 CLOSED

itteco avatar itteco commented on June 24, 2024
type for image sites

from iframely.

Comments (4)

iparamonau avatar iparamonau commented on June 24, 2024

Image-only sites should return photo type in oembed endpoint. You can check it on Imgur images or, say, 500px, for example.

However, if domains have other embed types, the APIs will give preferences to those.

Instagram has status embeds, Flickr has slideshows. Pinterest has only app-like status embeds. Hence, the preference in oEmbed endpoint. oEmbed is a little limited as a format as it only allows one embed type and we give preference to rich one.

Iframely format should return all available rels.

The same is true for Instagram videos - the preference is given for status embeds.

In the cloud, if you request with &iframe=1, the preference will be given to more simple types: photos and plain videos.

We'll think and perhaps give an iframe option to open source version as well.

from iframely.

manikmi avatar manikmi commented on June 24, 2024

Thanks,

Truly appreciate if you could help.

from iframely.

iparamonau avatar iparamonau commented on June 24, 2024

Sorry for taking so long to comment. I completely forgot we actually have your issue covered already.

Just re-define OEMBED_RELS_PRIORITY in your local config file, put image first, and we will use your preference, oEmbed API will return images in html field, if Iframely has any.

from iframely.

manikmi avatar manikmi commented on June 24, 2024

Hi Ivan

Is there a way to get the flickr photos(with thumbnail) and videos(with html code) return as type photo and video only. Right now it returns as type rich. I tried removing the apikey from config.local.js, it started showing photos as type photo and video as type rich. Also, my concern is if I remove the apikey, it should not return the rate limit issues?

Regards,
Manik Mittal

from iframely.

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.