[WordPress] 外掛分享: Hammy

首頁外掛目錄 › Hammy
WordPress 外掛 Hammy 的封面圖片
200+
安裝啟用
★★★☆☆
3.3/5 分(16 則評價)
4414 天前
最後更新
問題解決
WordPress 3.5+ v1.5.1 上架:2012-06-25

內容簡介

介紹

Hammy 可以對正常的內容圖片(僅限於文章和頁面,而不是自定義文章類型)進行重新調整大小,生成多個不同尺寸的圖片。當使用者訪問網站時,自動提供最適合的圖片(或是最小的圖片)。特別是在移動設備上,使用體驗更佳。該外掛使用新的 WP 3.5 圖像代碼。

它能在我的佈景主題上使用嗎?

可以!(唯一的例外是沒有標準文章或頁面的主題)

如何運作?

啟動後,<img> 標記被替換為 <figure> 標記,而替代圖像尺寸是以只有 jQuery 可以訪問加載的方式提供。如果沒有 jQuery,它會回退到最初的常規圖像。

它還繼承了原始圖像的任何類別或替代標題。它不會對您已經擁有的內容或圖像進行任何更改(例如,不會更改您的數據庫內容或圖像)。

有什麼其他需要知道的嗎?

支持 Retina
使用 WordPress 3.5 純碼(沒有外部依賴)
您需要願意花費幾分鐘配置和調整斷點,並選擇正確的父容器才能正確運作。
Hammy 每次都會過濾輸出,但僅需要生成一次調整大小的圖像。

更新

關注我以獲取更新:@noeltock

GitHub

如果您有技術問題或其他改進意見,請通過拉取請求或問題的形式在此處進行貢獻:

Hammy

反饋和錯誤

請在Hammy 論壇上發布任何問題、問題或建議。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.5.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Hammy」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Introduction
Hammy takes your regular content images (only within posts and pages, not custom post types) and regenerates a number of smaller sized images. When a person visits your website, it then automatically provides them with the most appropriate image (or the smallest one possible). This makes for a better experience, especially on mobile. This uses the new WP 3.5 image code.
Will it work on my Theme?
Yes! (the only exception being themes with no standard posts or pages)
How does it work?
When activated, the tag is replaced by the

tag, and the alternate image sizes are provided in a way that only jQuery can access/load. If jQuery isn’t available, it falls back to the regular image you had there in the first place.
It also takes on any classes or alternate titles from the original image. It does not make any changes to your database (i.e. content or images that you already have remain untouched).
What else do I need to know?

Supports Retina
Uses WordPress 3.5 Image Code (no external dependency)
You need to be willing to spend a few minutes configuring and playing with the breakpoints and choosing the correct parent container to get it right.
Hammy filters the output every single time, but only needs to generate a resized image once.

Updates
Follow me for updates at @noeltock
GitHub
If you have technical issues or other enhancements that you’d like to contribute, please do so in the form of a pull request or issue here:

Hammy


Feedback & Bugs
Kindly post any issues, questions or suggestions on the Hammy forums .

延伸相關外掛

文章
Filter
Apply Filters
Mastodon