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

Timber with Jetpack Photon

外掛說明

Make the Timber plugin work with Jetpack’s Photon. Once installed, all TimberImages use Photon as a CDN and for image manipulation (eg. resize).

Photon is an image acceleration and modification service for Jetpack-connected WordPress sites. Converted images are cached automatically and served from the WordPress.com CDN. Photon is part of the Jetpack plugin and completely free.

What does it do?

Timber with Jetpack Photon extends the current TimberImage class to use Photon to serve and manipulate your images:

  • {{post.thumbnail.src}} returns a Photon URL
  • {{post.thumbnail.src|resize(100)}} returns a Photon URL
  • {{post.thumbnail.src|resize(100,200)}} returns a Photon URL

A Photon URL looks like this:

//i0.wp.com/www.slimndap.com/wp-content/uploads/2014/05/slimndap.png

Requires the Timber plugin by Jared Nova and the Jetpack plugin with Photon activated.

Contributors welcome

Author

安裝方式

Look for ‘Timber with Jetpack Photon’ in the plugin repository.

使用者評論

2016 年 9 月 3 日
If you are using Timber, as you should, and Jetpack's awesome Photon feature, you need this to make them both work together. Thanks Jeroen for putting it up together. Cheers man.
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Timber with Jetpack Photon〉的開發相關工作。

參與者

將〈Timber with Jetpack Photon〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.4

  • Fixes a problem with the latest Timber version.

0.3

  • Added support for the ‘letterbox’ filter.

0.2

  • Added support for the upcoming timber_image_src filter.

0.1

  • Proof of concept.