Album Importer for Google Photos

外掛說明

Album Importer for Google Photos lets you easily import images from a public Google Photos album into your WordPress site and display them as a gallery. Add the block to any post or page, paste a Google Photos album URL, and start the import. From there, the images are added to your site’s Media Library and displayed automatically.

基本使用方式

  1. Create or edit a post/page where you want the gallery.
  2. Add the “Album Importer for Google Photos” block.
  3. From Google Photos, share your album and copy the public link URL. The format of a public Google Photos album URL will be similar to: https://photos.app.goo.gl/XXXXXXXXXXXXXXXXX.
  4. Paste the public link URL into the block.
  5. Click Start Import.
  6. The gallery is created automatically once complete.

外部服務

This plugin relies on Google Photos (a third-party service operated by Google LLC) to read and import publicly shared album content. No data is sent to any external service unless an authorized user explicitly provides a Google Photos album URL to the plugin. There are two triggers for requests to Google:

  1. The “Album Importer for Google Photos” block in the post/page editor: pasting an album URL and clicking “Start Import”.
  2. The “Import from Google Photos” button that the plugin adds to the media-selection modal of core Image, Gallery, Cover, and Media & Text blocks: pasting an album URL into the modal and clicking “Load album”.

Google 相簿

Google Photos is Google’s photo hosting and sharing service. The plugin uses it to fetch the contents of a publicly shared album so the images can be saved into the WordPress Media Library and rendered as a gallery.

What data is sent and when:

  • Verify the album (server -> Google). When an authorized editor pastes an album URL and triggers verification (clicking “Start Import” in the block, or “Load album” in the media-library modal), the plugin makes a server-side HTTP GET request to the album URL on photos.google.com or photos.app.goo.gl to retrieve the album’s public HTML page and parse the list of image URLs.
  • Render thumbnail previews (browser -> Google). After verification returns the list of images, the plugin renders thumbnails directly in the editor by setting each image URL as the src of an <img> tag. This causes the editor user’s browser to make HTTP GET requests to lh3.googleusercontent.com for each thumbnail.
  • Filename inference (server -> Google). For each image to be imported, the plugin makes a server-side HTTP HEAD request to lh3.googleusercontent.com to read the Content-Disposition header (the import continues even if this request fails).
  • Image download (server -> Google). For each image, the plugin issues a server-side HTTP GET request to lh3.googleusercontent.com to download the image bytes and store them as a WordPress media attachment.
  • No user credentials, account information, or telemetry are collected or transmitted by the plugin. The only data the plugin sends is the album URL the editor pastes (and the derived image URLs from that album).

Use of Google’s services is subject to Google’s terms:

原始程式碼

The full, unminified source code for this plugin is publicly available on GitHub.

螢幕擷圖

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Album Importer for Google Photos Import your Google Photos album images into your WordPress site and display them in a beautiful gallery.

安裝方式

From WordPress Admin

  1. Go to Plugins -> Add New.
  2. Search for “Album Importer for Google Photos”.
  3. Click Install Now, then Activate.

手動安裝

  1. Download the plugin ZIP.
  2. Upload the importer-google-photos folder to /wp-content/plugins/.
  3. 在 WordPress 管理後台的 [外掛] 選單中啟用外掛。

常見問題集

What album URLs are supported?

Publicly shared Google Photos album links (e.g., https://photos.app.goo.gl/...).

Where are images stored?

Imported images are saved in your WordPress Media Library as standard attachments.

Do I need a Google API key?

No. A publicly shared album link is sufficient for importing.

Does it work with the block editor?

Yes. The plugin provides a Gutenberg block for inserting and importing the album.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

〈Album Importer for Google Photos〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Album Importer for Google Photos〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial public release.