Discussions (3,559)

oEmbed doesn't provide large size URL?

view profile

Antonio Tajuelo says:

Hello everyone,

I have been testing the new Wordpress 2.9 oEmbed feature for the last few days. The issue I have is that I think oEmbed service at Flickr doesn't provide the large (1024) size of the requested photo (I'm assuming a bigger original photo, so that automaticly generated big size file exists).

Here's an example request (please note the maxwidth and maxheight attributes set at 1200):
www.flickr.com/services/oembed?url=http://flickr.com/phot...

And here's Flickr oEmbed service response:


<oembed>
<version>1.0</version>
<type>photo</type>
<title>Texas Snow Birds</title>
<author_name>Big Grey Mare</author_name>
<author_url>https://www.flickr.com/photos/biggreymare/</author_url>
<cache_age>3600</cache_age>
<provider_name>Flickr</provider_name>
<provider_url>https://www.flickr.com/</provider_url>
<width>500</width>
<height>333</height>
<url>
farm3.static.flickr.com/2751/4254161092_11ed4b9037.jpg
</url>
</oembed>


As you can see, it just provides the medium size data from the photo, even if it should provide the data for the big (1024) version of the photo.

Is there any way to get the large image data from flickr oEmbed service??
Originally posted at 2:36AM, 8 January 2010 PDT (permalink)
Antonio Tajuelo edited this topic 52 months ago.

view photostream

Clint Lalonde says:

I'm also experiencing this. Anyone else know if 500 px is the maximum width Flickr returns with an oEmbed response? If so, is this intentional or unexpected?
50 months ago (permalink)

view photostream

henrylyne says:

I just updated the flickr oembed code to support the medium 640 size and the large(1024) size when maxwidth or maxheight is specified. The default size returned when neither are specified is still the medium 500px size.
31 months ago (permalink)

view photostream

m7zhao says:

The large size was working for me before but recently stopped working (not sure exactly when, noticed it today).

Now when I do:
www.flickr.com/services/oembed?url=http://www.flickr.com/...

It returns the 640px size.
24 months ago (permalink)

view photostream

m7zhao says:

Still having this issue... can someone from Flickr investigate? Thanks!
23 months ago (permalink)

view photostream

Shawn Caza says:

Until recently I was getting Medium sized images returned. Now I'm only getting small images with maxwidth set to 525. If I raise the maxwidth I still get small images.
23 months ago (permalink)

view photostream

joellemiller says:

I can't get large (1025) images either. Only 640 size. I'm suing the wordpress embed feature and have specified a max width / height as instructed here: codex.wordpress.org/Embeds

I've also followed these steps here to no avail:
www.wpbeginner.com/wp-themes/how-to-set-oembed-max-width-...

Any help with getting larger images through oembed would be appreciated.
15 months ago (permalink)

view photostream

Sam Judson is a group administrator Sam Judson says:

Not really familiar with oEmbed, but the large size seems to be returned if you don't specify a maxHeight or maxWidth at all.
15 months ago (permalink)

view photostream

juan.monroy says:

joellemiller:

You have to add the line of code to your functions.php. I've changed content_width to different values, but it looks like Flickr only serves images of the following sizes: 320, 640, and 1024.
15 months ago (permalink)

view photostream

juan.monroy says:

Hi all,

It looks like a while ago, Flickr only served, via oembed, images no larger than 500px. From playing around with some oembed requests, it appears that Flickr now serves images of 320, 640, and 1024 px.

I'd like to use images that are 500px wide (496px would be ideal, but I'll take what I can get at this point). Is it possible to get those 500px images via oembed?
15 months ago (permalink)

Would you like to comment?

Sign up for a free account, or sign in (if you're already a member).