2015-06-11 143 views
1

我正在嘗試在博客頁面上添加一個Pin it按鈕。 AddThis小部件正在用於此目的。頁面上的Pinterest圖像未顯示

但是,當我嘗試使用PIN功能,那麼它不會選擇我的網頁上的所有圖像。

的圖像標記如下

- 入門置頂

<img src="images/blog/123_3710961211.jpg" class="blog-main-img"> 

- 沒有得到置頂

<img src="data:image/png;base64,v2nv1jcqS/VEhanlIJN8hnyDHoT4Z8FfAhX/g8EI9yHfLfPFQAAAA 
BJRU5ErkJggg==" data-filename="Victor Vasarely positive negative space pic.png" 
style="width: 521px;"> 

讓我知道什麼是e RROR? Pin是否不包含數據圖像? 我曾嘗試使用另一個小部件,但也有相同的結果。

我讀的地方img大小應該至少100×200但我所有的圖片都比那大。

+0

有一種創造牽制,但也需要API和我認爲你需要有用戶登錄... https://developers.pinterest.com/docs/api/pins/#create-pins –

回答

0

Pinterest的不支持從BASE64圖片釘,你應該能夠meta標籤設置在網頁上不顯示實際圖像然而

<meta property="og:image" content="http://example.com/pic.jpg" />

+0

從這個頁面看起來他們支持base64,但只爲登錄在用戶... https://developers.pinterest.com/docs/api/pins/#create-pins –