Closed GoogleCodeExporter closed 8 years ago
You should give flickr explicit params in your call (which are all lowercase):
$('#whatever').oembed(null, { flickr: {
maxheight:"500",
maxwidth:"500"
}});
Original comment by oori.wes...@gmail.com
on 2 Jan 2010 at 3:26
..also: flickr gives only specific sizes back, you must request a
maxheight/width
bigger then what you need, and resize it down yourself (css with/height)
you can see the "Available sizes" under the "all sizes" in the flickr photo.
Original comment by oori.wes...@gmail.com
on 2 Jan 2010 at 4:19
oori.westwind is right, but you can also specify a generic maxwidth and
maxheight for
all providers.
$(document).ready(function() {
$(".oembed").oembed(null, {
embedMethod: "append",
maxWidth: 400,
maxHeight: 300 });
});
See example "maxwidth-example.html" to see it working.
Original comment by rchamo...@gmail.com
on 15 Mar 2010 at 10:08
Issue 11 has been merged into this issue.
Original comment by rchamo...@gmail.com
on 15 Mar 2010 at 10:13
Is it possible to pass a variable in to maxWidth/maxHeight?
e.g.
$(document).ready(function() {
$(".oembed").oembed(null, {
embedMethod: "append",
maxWidth: 100%,
maxHeight: 100% });
});
Doesn't seem to work.
Original comment by oprey...@gmail.com
on 15 Apr 2010 at 4:08
Original issue reported on code.google.com by
zerotwen...@googlemail.com
on 30 Dec 2009 at 12:14