[WordPress] 外掛分享: Presswell Art Direction

WordPress 外掛 Presswell Art Direction 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Presswell Art Direction」是 2018-04-11 上架。
  • 目前有 100 個安裝啟用數。
  • 上一次更新是 2025-03-19,距離現在已有 45 天。
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

benplum | presswell |

外掛標籤

crop | image | images | picture | thumbnail |

內容簡介

Presswell Art Direction 可以協助簡化自訂圖片縮圖大小的定義、裁切和產生。

功能

使用熱點來控制圖片裁切
選擇 WordPress 編輯器中的自訂圖片尺寸
動態生成圖片縮圖
刪除所有快取的縮圖

圖片裁切

Presswell Art Direction 加入了對於媒體庫中所有圖片設置聚焦點熱點的功能,以進一步控制圖片的裁切。只需識別照片的主題在哪裡,插件就會裁切所有自訂縮圖,以確保主題保持在畫面中。

縮圖大小

Presswell Art Direction 提供了一個易於使用的介面,可用於定義和編輯自訂圖片縮圖大小。在插入文章時,可以選擇自訂圖片尺寸。

動態圖片

Presswell Art Direction 防止自訂圖片尺寸自動產生。當上傳新圖片時,只會生成標準 WordPress 縮圖。當通過代碼調用或通過 URL 請求時,所有其他圖片尺寸將動態生成,這樣在定義多個自訂圖片尺寸時能節省服務器空間。注意:基於 URL 的圖像生成需要啟用美麗的永久連結。

文檔

pwad_add_image_size( $args )

$args (array) (required) – 包含 name,key,height,width 和可選 thumbnails 值的鍵入散列;縮圖鍵以父節點的關鍵字為前綴,例如 ‘[size]-[thumbnail]’

範例:

pwad_add_image_size( array(
'name' => '正方形',
'key' => 'square',
'width' => '1200',
'height' => '1200',
'thumbnails' => array(
array(
'name' => '中等',
'key' => 'medium',
'width' => '800',
'height' => '800',
),
array(
'name' => '小',
'key' => 'small',
'width' => '400',
'height' => '400',
),
),
) );

pwad_get_image( $attachment_ID, $size_key, $thumbnail_key )

$attachment_ID (int) (required) – 圖像附件的 ID
$size_key (string) (required) – 圖像尺寸標識符;使用 ‘[size]-[thumbnail]’ 模式進行重載
$thumbnail_key (string) (required) – 圖片尺寸縮略圖標識符

返回圖像標籤。

範例:

$square_large = pwad_get_image( $img_ID, 'square' );
$square_medium = pwad_get_image( $img_ID, 'square', 'medium' );
$square_small = pwad_get_image( $img_ID, 'square-small' ); // 重載

pwad_get_image_src( $attachment_ID, $size_key, $thumbnail_key )

$attachment_ID (int) (required) – 圖像附件的 ID
$size_key (string) (required) – 圖像尺寸標識符;使用 ‘[size]-[thumbnail]’ 模式進行重載
$thumbnail_key (string) (required) – 圖片尺寸縮略圖標識符

返回一個包含 file、url、path、height、width 和 mime-type 值的鍵入散列。

範例:

$square_large = pwad_get_image_src( $img_ID, 'square' );
$square_medium = pwad_get_image_src( $img_ID, 'square', 'medium' );
$square_small = pwad_get_image_src( $img_ID, 'square-small' ); // 重載

原文外掛簡介

Presswell Art Direction helps simplify how custom image thumbnail sizes are defined, cropped, and generated.
Features

Control image cropping with hot-spots
Select custom image sizes in the WordPress editor
Dynamically generate image thumbnails
Delete all cached thumbnails

Image Cropping
Presswell Art Direction adds the ability to set a focal point hot-spot for all images in the media library for fine grain cropping control. Simply identify where the subject of the photo is and the plugin will crop all custom image thumbnails to ensure it stays in frame.
Thumbnail Sizes
Presswell Art Direction adds an easy to use interface for defining and editing custom image thumbnail sizes. Custom image sizes will be available for selection when inserting images in the post editor.
Dynamic Images
Presswell Art Direction prevents custom image sizes from being generated automatically. Only standard WordPress thumbnails will be generated when a new image is uploaded. All other image sizes will be dynamically generated when called via code or requested via URL, saving server space when many custom image sizes are defined. Note: URL based image generation requires that pretty permalinks are enabled.
Documentation
pwad_add_image_size( $args )

$args (array) (required) – Keyed array containing name, key, height, width, and optionally thumbnails values; Thumbnail keys are prefixed with parent’s key like ‘[size]-[thumbnail]’

Example:
pwad_add_image_size( array(
'name' => 'Square',
'key' => 'square',
'width' => '1200',
'height' => '1200',
'thumbnails' => array(
array(
'name' => 'Medium',
'key' => 'medium',
'width' => '800',
'height' => '800',
),
array(
'name' => 'Small',
'key' => 'small',
'width' => '400',
'height' => '400',
),
),
) );

pwad_get_image( $attachment_ID, $size_key, $thumbnail_key )

$attachment_ID (int) (required) – ID of image attachment
$size_key (string) (required) – Image size identifier; Overload using ‘[size]-[thumbnail]’ pattern
$thumbnail_key (string) (required) – Image size thumbnail identifier

Returns an image tag.
Example:
$square_large = pwad_get_image( $img_ID, 'square' );
$square_medium = pwad_get_image( $img_ID, 'square', 'medium' );
$square_small = pwad_get_image( $img_ID, 'square-small' ); // Overloaded

pwad_get_image_src( $attachment_ID, $size_key, $thumbnail_key )

$attachment_ID (int) (required) – ID of image attachment
$size_key (string) (required) – Image size identifier; Overload using ‘[size]-[thumbnail]’ pattern
$thumbnail_key (string) (required) – Image size thumbnail identifier

Returns a keyed array containing the file, url, path, height, width, and mime-type values.
Example:
$square_large = pwad_get_image_src( $img_ID, 'square' );
$square_medium = pwad_get_image_src( $img_ID, 'square', 'medium' );
$square_small = pwad_get_image_src( $img_ID, 'square-small' ); // Overloaded

各版本下載點

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

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


1.0.7 | 1.0.8 | 1.0.9 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.1.6 | 1.1.7 | 1.1.8 | 1.1.9 | 1.1.10 |

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

  • Regenerate Thumbnails 》重新生成縮略圖插件可以讓您為已上傳到媒體庫的一個或多個圖像重新生成所有縮略圖大小。, 這對以下情況很有用:, , 您新增了新的縮略圖大小,並且您希望過去...。
  • Force Regenerate Thumbnails 》『Force Regenerate Thumbnails』可以讓您刪除所有舊圖像大小,並確實重新生成上傳圖像的縮略圖。, 在「工具」管理員選單中從頭開始生成所有縮略圖,或透過媒...。
  • Perfect Images 》使用 Perfect Images,輕鬆掌握您的圖像!這個強大的外掛可助您進行圖像優化和管理,輕鬆替換或批量重新生成現有圖像,設置自定義尺寸,提高性能,並為高質量...。
  • AJAX Thumbnail Rebuild 》AJAX Thumbnail Rebuild 可讓您重新建立網站上的所有縮圖。儘管已經有一些插件可供使用,但它們有一個共同點:所有縮圖都會在單一步驟中重新建立。如果您的網...。
  • XO Featured Image Tools 》此外掛可以自動從文章中的圖片產生特色圖片。, 功能, , 一次性產生所有文章的特色圖片。, 在儲存文章時自動產生特色圖片。, 批次刪除文章的特色圖片。, 於文...。
  • Conditionally display featured image on singular posts and pages 》注意事項, 如果你的佈景主題使用自訂調用來載入特色圖片(如 Twenty Seventeen 主題),則本外掛可能無法運作!請使用 get_the_post_thumbnail()、wp_get_att...。
  • Featured Image Admin Thumb 》啟用此外掛後,它會在「所有文章/所有頁面」及支援的所有自訂文章類型管理介面中新增一欄,名為「Thumb」。這一欄會顯示文章特色圖片或者是文章縮圖的縮略圖...。
  • Videopack 》一個外掛,用於製作視頻播放器、縮略圖、多個分辨率和視頻庫。, 這個視頻外掛可以將各種選項添加到上傳到 WordPress 媒體庫的任何視頻。如果您的瀏覽器原生支...。
  • PDF Image Generator 》這個外掛可以透過上傳 PDF 附件,將封面轉換為 JPEG,並作為文章縮略圖檔案附加。它還允許顯示縮略圖標誌和插入 PDF 鏈接與封面圖像到編輯器。, , 僅支援 Wor...。
  • Manual Image Crop 》此外掛允許您手動裁剪 WordPress 佈景主題中註冊的所有圖片尺寸(特別是特色圖片)。, 只需點擊您媒體庫中任何圖片旁邊的“裁剪”連結。, 將顯示...。
  • Kama Thumbnail 》這個外掛可以方便地在不增加負擔的情況下即時建立文章縮圖,是 "thumbnail.php" 腳本的最佳替代品。, 支援多站點。, 使用方法, 這是針對開發人員的外掛,安裝...。
  • Get the Image 》「Get the Image」是 WordPress 中最先進的縮略圖 / 圖片外掛之一。, 從小型博客到大型企業級解決方案 (如WordPress.com VIP),此插件適合所有人使用。它之所...。
  • Easy Add Thumbnail 》註: 此外掛功能由超過 10,000 個活躍的安裝保證。但在安裝此外掛之前請注意,它的唯一目的是將功能影像識別碼 (使用 WP 編輯器相同的方式) 添加到您的文章中...。
  • Document Gallery 》這個外掛可讓使用者毫不費力地建立文件和其他附加媒體的圖庫,就像現有的圖像附件圖庫選項一樣。, 觀看以下視頻以瞭解 Document Gallery 如何運作:, , 在設...。
  • Advanced Random Posts Widget 》注意事項, 此外掛已不再支援,請使用 Recent posts widget Extended 取代。, 此外掛提供更彈性和進階的隨機文章列表功能。您可以透過縮略圖、摘要和文章日期...。

文章
Filter
Apply Filters
Mastodon