[WordPress] 外掛分享: Image Formatr

WordPress 外掛 Image Formatr 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Image Formatr」是 2010-01-04 上架。
  • 目前有 50 個安裝啟用數。
  • 上一次更新是 2015-12-13,距離現在已有 3429 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.9 以上版本才可以安裝。
  • 有 4 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

huntermaster |

外掛標籤

post | flickr | images | caption | formatting |

內容簡介

Image Formatr 是一個簡單的外掛,通過對文章和頁面中所有內容圖像的處理,不需要使用者任何更改:

使用 CSS 給它們一個標準化的縮略圖格式
使用標題在每個圖像下方添加標題
使它們鏈接以便在全尺寸中彈出

它不會生成縮略圖,但如果在媒體庫中可用,縮略圖將會被使用。

該插件由 prettyPhoto 庫驅動,因此我們可以稱該插件為一個 prettyPhoto 整合外掛。

*注意:支援 Flickr 上的圖像。

使用方法

這僅適用於您放置在內容中的圖像,而不是主題圖形。

src="/images/picture.jpg"
class="alignright"
title="A sample caption"
link="http://example.com/"
hint="Image borrowed from example.com"
/>

在該外掛運行後,瀏覽器輸出如下:


href="/images/picture.jpg"
rel="prettyPhoto[main]">
src="/images/picture.jpg"
title="Image borrowed from example.com" alt=""
width="140" height="90"/>


文檔

您可以在 http://warriorself.com/blog/about/image-formatr/ 找到插件文檔。

特點

標準化所有縮略圖而不更改文章
支援顯示來自 Flickr 的圖像: title=”The magnificent Ceiba at the Archaeological Site of Palenque.”>
使用圖像 title 或 alt 生成圖像說明
整合 WordPress 媒體庫縮略圖
為 WordPress 圖庫圖像提供彈出窗口(將優先順序設置為 12)
在博客中將所有內容圖像顯示為小型縮略圖
(不會創建新的縮略圖,但可以使用媒體庫的縮略圖)
允許對每個圖像的格式進行精細控制
使用prettyPhoto庫,單擊圖像即可將其放大
輸出標準的XHTML兼容標記

圖庫支持

為了讓 WordPress 圖庫圖像可以彈出,該插件必須在優先順序上運行(後於) 短代碼, 短代碼在優先順序11運行。因此,在管理選項中設置 priority 設置為 12。

覆蓋

插件的操作可以通過管理設置啟用和禁用,但可以通過每個單獨的圖像進行覆蓋。

usemysize - true/false - true = 不忽略圖像寬度和高度
usemya - true/false - true = 不忽略父錨點
nocap - true/false - true = 不創建標題
nofx - true/false - true = 沒有彈出效果
link - string url - 使標題成為該 URL 的鏈接
hint - string txt - 這將是新的圖像標題
asis - true/false - true = 不更改任何內容

原文外掛簡介

Image Formatr is a simple plugin that goes through all the content images on
posts & pages, and with zero user changes:

gives them a standardized thumbnail format using CSS
puts a caption underneath each one using the title
makes them linked so they popup in full size

Thumbnails are not generated, but will be used if available in the media library.
This plugin is driven by the prettyPhoto
library so we could call this plugin a prettyPhoto integration plugin.
*Note: Supports images on Flickr.
Usage
This only applies to the images you put in your content, not theme graphics.

After the plugin runs, the output to the browser looks like:

Documentation
You can find plugin documentation at http://warriorself.com/blog/about/image-formatr/
Features

Standardizes all thumbnails without altering posts
Supports displaying images from Flickr:
Generates image captions using the image title or alt
Integrates WordPress media library thumbnails
Gives popups for WordPress gallery images (adjust priority setting to 12)
Shows all content images on the blog as small thumbnails
(does not create new thumbnails but can use Media Library for thumbs)
Allows for fine-grained control of each image’s format
Zooms image to large size when clicked using the
prettyPhoto
library
Outputs standard XHTML compliant markup

Gallery Support
To get WordPress Gallery images to popup, this plugin must run at a priority
greater (later) than the shortcode which runs at priority 11. Therefore
set the priority setting to 12 in the Administration Options.
Overrides
The actions of the plugin are enabled and disabled with administration settings
but can be overridden on each individual image.

usemysize – true/false – true = do not ignore an image width and height
usemya – true/false – true = do not ignore a parent anchor tag
nocap – true/false – true = do not create a caption
nofx – true/false – true = no popup effect
link – string url – make the caption a link to the url
hint – string txt – this will be the new image title
asis – true/false – true = don’t change nuthin
group – string txt – separate popup slideshows
thumb – string url – image thumbnail (version 0.9.7)
page – single/!single/front/!front – page filtering (version 0.9.7)

If you want to surround an image with an anchor tag , then you should add
a usemya attribute within the image tag or else your anchor will be ignored
and replaced. If you do not want the popup effect at all, add a nofx attribute
to the image. If you do not want any caption, you can specify nocap, or just
leave the title blank. And to have the plugin completely ignore an image and
output the content directly from the post, use the asis attribute.
Example

Note: concerning the true/false overrides, do not include “false” parameters
like , i.e these overrides should only include the attributes
for which you want to designate a “true” value.
Credits
Image Formatr is Copyright 2014 Steven Almeroth and
licensed under a GPL license.
Based on: image-caption
by Yaosan Yeo.
PrettyPhoto: The JavaScript
Image thumbnail viewer
library by Stephane Caron is licensed under GPLv2.
Website
More information, including how to contact me, is available at
warriorself.com.
Translations

If you would like to contribute a translation of the administration settings
screen please have a look at the
.pot
file and post to the support forum
of e-mail to me.

ToDo List

add screenshot of output image with caption

Wish List

phone-home feature, activate/deactivate stats helper with version number
add admin option for html/xhtml closing tags
add admin option for moving title attribute to alt attribute should it
overwrite an existing alt?
debug mode could show images not found and whatnots and profiling stats
change [flickrset id=”1234″] to [flickr set=”1234″]
change [flickr pid=”123″] to [flickr img=”123″]
show “the_content” ordering vis a vie wp-hooks-filters-flow.php
Priority 8 :
WP_Embed->run_shortcode()
WP_Embed->autoembed()
Priority 10 :
wptexturize()
convert_smilies()
convert_chars()
wpautop()
shortcode_unautop()
prepend_attachment()
Priority 11 :
capital_P_dangit()
do_shortcode()
Priority 20 :
ImageFormatr->filter()

Bug List

bug: add_settings_field()

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Image Formatr」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.8 | 0.9 | 1.0 | 1.1 | 0.9.2 | 0.9.4 | 0.9.5 | 0.9.6 | 0.9.7 | 1.0.1 | 1.2.1 | 1.2.2 | 1.2.3 | 1.2.4 | 1.2.5 | 1.2.6 | trunk | 0.10.0 | 0.10.1 | 0.9.7.3 | 0.9.7.4 | 0.9.7.5 |

延伸相關外掛(你可能也想知道)

  • Advanced Editor Tools 》高級編輯工具(以前稱為 TinyMCE Advanced)引入了一個「經典段落」區塊,供區塊編輯器(Gutenberg)使用。, 如果您還沒有準備好切換到區塊編輯器,或者有插...。
  • Advanced Excerpt 》這個外掛可以改進 WordPress 原有的摘錄文章功能。, , 保留摘錄中的 HTML 標記,並可自選需要保留的標記, 按字元數或字數截斷摘錄, 只計算「真正的」文字(HT...。
  • Raw HTML 》is capability is only granted to administrators. If you’re not an admin, you will need to ask them to add it to your role., Raw HTML is not r...。
  • PS Disable Auto Formatting 》如果你受夠了 WordPress 自動格式化的習慣,可以試試這個外掛。, PS Disable Auto Formatting 停止 WordPress (wpautop) 的自動格式化,並修改由可視化編輯器...。
  • Toggle wpautop 》注意:此外掛不支援區塊編輯器,但當您在自訂文章類型中使用並搭配經典編輯器外掛時,應可繼續正常工作。, 在 WordPress 顯示文章內容之前,該內容會經過多個...。
  • TinyMCE Clear Float 》這個 WordPress 外掛會在 TinyMCE 編輯器中新增一個按鈕,可以清除浮動效果。。
  • Advanced Image Styles 》在 WordPress 的可視化編輯器中輕鬆調整圖片的邊界和邊框。。
  • footnotes 》footnotes 旨在成為顯示在頁面或文章上自動生成參考資料清單的全方位解決方案。該外掛內置了一組預設值,同時也允許您控制註腳的顯示方式。, footnotes 為您...。
  • Limit Modified Date 》警告:此外掛已不再受支援,可能無法與古騰堡區塊編輯器兼容。, 我建議改用 Change Last Modified Date 外掛。, 概要, 當對內容進行輕微更改時,避免修改日期...。
  • Aspose.Words – Import and Export word documents 》Aspose.Words 可讓網站管理員將 WordPress 的文章和頁面匯入和匯出為 Word DOCX、DOC 和 ODT 文件。它使用了非常強大的 Aspose.Words Cloud。, 可以將文檔匯...。
  • Advanced Rich Text Tools for Gutenberg 》這個外掛增加了以下功能:, , 在格式工具列中添加了代碼「code」、下標「sub」和上標「sup」按鈕。, 內嵌文字與背景顏色面板(目前在區塊側邊欄內尋找)。, ...。
  • WP-Syntax 》WP-Syntax 提供乾淨的語法突顯,使用 GeSHi,支援多種流行的語言,包括有或沒有行號的語法突顯,可以在從瀏覽器中複製程式碼片段時保持格式。, 它通過運行早...。
  • WP Super Edit 》重大更新即將到來!, 此外掛很快就會有一個重大更新。, WP Super Edit 的設計目的是掌控 WordPress 的所見即所得(WYSIWYG)視覺編輯器,並透過添加更多按鈕...。
  • WP Typograph Lite 》這個外掛WP Typograph Lite適用於大多數俄語博客,旨在根據俄語印刷標準自動格式化文本。它處理所有主要內容塊-標題、文章和頁面文本、評論。格式化是在頁面...。
  • Footnotes Made Easy 》Footnotes Made Easy 是一個簡單而強大的方法,可將註腳添加到您的文章和頁面中。, 主要功能包括:, , 透過雙括號簡單插入註腳, 合併相同註腳, 用於分頁文章...。

文章
Filter
Apply Filters
Mastodon