這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

CDN Image Proxy

外掛說明

When developing locally, it’s common to use a database dump from a production site. With large sites, it’s also common that the production site’s image uploads cannot be easily copied to the local environment, because there are simply too many of them.

While local environments like Pilothouse allow you to easily proxy image uploads to your local environment from the production site, that doesn’t work so well if you add or change one of the registered thumbnail sizes in your local copy of the theme, since the new thumbnail size can’t be proxied from production as it doesn’t exist there. You’re also not able to regenerate the needed thumbnail sizes locally, because the original image file is not present locally.

CDN Image Proxy solves this problem by using Jetpack Image CDN (formerly Photon) to proxy image uploads from your production site. Jetpack Image CDN will automatically generate and serve any required thumbnail size on-the-fly, but CDN Image Proxy will tell it to look for the original image on your production server, rather than on your local URL.

The result is that you can add or change registered image sizes locally whenever you want, and Jetpack Image CDN will generate and provide a CDN URL for whatever thumbnail size is required, sourced from the original image file located on the production site.

安裝方式

  1. Install and activate CDN Image Proxy on your local site
  2. Install and activate Jetpack on your local site
  3. Go to Settings > Media and save your production site’s URL in the field provided.

You can also define your production site’s URL as a constant in wp-config.php, like so:

define( 'CDN_IMAGE_PROXY_REMOTE_URL', 'http://example.com' );

常見問題集

Installation Instructions
  1. Install and activate CDN Image Proxy on your local site
  2. Install and activate Jetpack on your local site
  3. Go to Settings > Media and save your production site’s URL in the field provided.

You can also define your production site’s URL as a constant in wp-config.php, like so:

define( 'CDN_IMAGE_PROXY_REMOTE_URL', 'http://example.com' );
**I thought Jetpack Image CDN (Photon) doesn’t work on local sites, and required a wordpress.com connection!**

That’s not a question, but CDN Image Proxy will force the Jetpack Image CDN module to be active on local sites, and will disable the wordpress.com connection requirement for that module.

**Are other magic image services supported besides Jetpack Image CDN (Photon)?**

Not at this time, but I’d be open to adding support for other services.

使用者評論

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

參與者及開發者

以下人員參與了開源軟體〈CDN Image Proxy〉的開發相關工作。

參與者

將〈CDN Image Proxy〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0

  • Initial Release