ky_metro
(Chris Saenz)
2015 年 6 月 17 日午前 12:49
1
Google+ フォトは、Android で自動バックアップをオンにしている多くのユーザーにとってデフォルトでした……すべての写真がオンライン上の一つの場所に保存され、無料ストレージなどが利用できました……。私は以前、Google のページで写真を開き、それを Discourse へドラッグする習慣がありました。写真の URL は、かつては以下のような形式でした。
https://lh3.googleusercontent.com/-DDzM12G2Qwc/VWlw-u8s6RI/AAAAAAABlio/PjSwWb_IOJQ/w1556-h875-no/IMG_20150529_201713.jpg
これは問題なくワンボックス表示されます:
現在では Google フォト(Plus は削除されました)となり、写真の URL の仕組みも変更されました。
同じ写真、新しい Google フォトの URL:
これは「.jpg」ではないため、ワンボックス表示されません。その文字列から生の jpg の場所を抽出する方法がわかりません。どうやら完全に異なる保存場所と ID であり、末尾に写真のサイズ情報が含まれているようです。
私よりも詳しい方が、この機能を追加または修正していただけませんか?
「いいね!」 2
Sure @techapj can you add this to your list?
「いいね!」 1
There might be a few things to consider here in terms of where users get their URL’s from.
Here are 4 links:
Page URL when image is viewed as myself
Get “Share” link from above page
Direct image link
Selecting 3 images and then selecting “Share”
「いいね!」 7
Just checking in to see if there’s been any movement on this? I recently ran into the same problem for a user.
lrossouw
(Louis Rossouw)
2016 年 7 月 22 日午前 11:43
5
It would be great if we can get these https://goo.gl/photos/KKiG8XvS4o9BXy2r9 style links oneboxed. Both the photo and gallery versions.
cpradio
(cpradio)
2016 年 7 月 22 日午後 12:14
6
Thank link doesn’t seem to work for me, can you paste a working version in Generate responsive embed codes - Iframely to see if it is even supported? (particularly for gallery versions)
lrossouw
(Louis Rossouw)
2016 年 7 月 22 日午後 1:34
7
Cool they seem to work actually. I added goo.gl to my site’s onebox settings and they work now. I don’t know why I thought I didn’t need to do that.
I also edited the link as I copied one of the ones above but with the link count number at the end by mistake.
「いいね!」 1
lrossouw
(Louis Rossouw)
2016 年 7 月 22 日午後 2:00
8
Only drawback it seems is that Google shows only the top of portrait images.
There is no way URL shorteners would be expected to work here. None whatsoever.
lrossouw
(Louis Rossouw)
2016 年 7 月 23 日午前 1:29
10
It does work if you whitelist goo.gl. Also if you share a photo from Google Photos it generates a special goo.gl link (similar to the maps specific one) that’s just for photos. So it’s not a standard shortened link. On my site I white-listed goo.gl and if you post this link it puts the photo in.
Only problem is that portrait mode photos are cut-off. But I think that’s something wrong on Google’s end.
See this:
That photo should look like this, but it’s only showing the top part.
cpradio
(cpradio)
2016 年 7 月 23 日午前 3:37
11
You would be correct. If you look at the meta tags they generate, it links to a photo that only shows the top portion of the portrait photo
「いいね!」 4
sam
(Sam Saffron)
2017 年 10 月 13 日午前 5:12
12
We covered this in another topic, the pain here is that our “onebox any image” code depends on file extension instead of doing a HEAD/GET and pulling out the mime type.
I think we should just bite the bullet here and look at mime types cause it cleans up a bunch of places where this is the case.
(note, slack does this)
「いいね!」 3
Seeing how Instagram oneboxing is working nicely, any chance the same could be applied to Google Photos albums?
Continuing the discussion from Onebox Twitter embedding :
There is an issue with Instagram embedding for which there is no topic to my surprise. I only found this comment by @Apreche written in January. This is actually causing quite a lot of confusion among users. They post an URL to its own line but instead of a link, they see an image in their post. Is there any way to improve this behaviour?
Here is the link that Google produces for sharing an album with 3 photos in it:
https://photos.app.goo.gl/OPDpevnR0XUHTqA33
And here is how a Google Photos album with 3 photos is presented in Discourse:
I don’t see that used as much as Instagram, so it isn’t as much of a priority.
techAPJ
(Arpit Jalan)
2018 年 11 月 10 日午前 6:23
16
「いいね!」 17
ky_metro
(Chris Saenz)
2018 年 12 月 20 日午後 6:23
26
That is AWESOME. Thank you!!
「いいね!」 3
It seems that the Onebox is cropping the image in my case. Am I doing something wrong?
https://photos.app.goo.gl/1j3E4exAQUeBSDEn7
Onebox
Full image
「いいね!」 1
techAPJ
(Arpit Jalan)
2019 年 4 月 25 日午前 6:13
28
Onebox uses og:image tag to get image link and in above case the cropped image is what Google is linking to as per:
<meta property="og:image" content="https://lh3.googleusercontent.com/6nA9fLdVMC1TzVwZbLYSRW7LUGoe8Gm9kQ_eKktYVALvfULRzYwbd2l4tb54oUG_khyUJuP16Dha1muAT7fAKssGBcqHiFXDwlBVRvvrajaJ2Xy2hJ8HusnoHj1vnDZa3XhzW1ORZsa11AnG_zRfOii8ejgoA9SsobPJXoO3xBq9M7CDPzrOkHHhzG50bslo0FeHhN5S8TrHXmykxLSerV1879tiFo4VrvafHGyRI6iHLjaZvXVNWd-VlD58bM7lgvefBoJe8YlYCGL67cqmcL7XCRjutf6c0jKq7lY0nI9q3nZTDXssgnrvHT-jt0cLzkA8r-ODBtGG9-zhuhTpZqSS4CBsduVckZLtS8wbBPXriyWq7bWn9joynQd-vqgTLj6qdpQqCif62OZclPYr2IO4pOiAK6Fcuns6eMiEYFvv4A1DHu-9ZQ7YMkZqRjNUT8tei0pTmqw7pKUMIEqD21xFiCtF4r3rI3YiO94EaKyJZW2lNAOnIieSPG_n0sdYYT4ciCj0yGbVbdwqaF8Fq77o2AENiFhp8VVqfYbKPtt8PvAdZsoSdpasdVafkxLIPD1iGlkiMljXX9-BpjZGeUNKeLBbHp--IRi3wnbal-3OW6GxwO_H_bmed2xa8hXGfwcbyzmWS35FkkXClZhVnbWyePrYXM298Bhft5C-OZSl0R-OuGiC6rmM52Z_wWfx5njtwWIu_Xuyr35TQqAvroPi=w600-h315-p-k">
No image cropping is happening on discourse/onebox side.
「いいね!」 4