[WordPress] 外掛分享: Image Cropper

前言介紹

  • 這款 WordPress 外掛「Image Cropper」是 2011-07-20 上架。
  • 目前有 50 個安裝啟用數。
  • 上一次更新是 2011-07-21,距離現在已有 5036 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

julioprotzek |

外掛標籤

api | image | cropper |

內容簡介

如需將文章縮圖圖片裁剪為 200×300 像素,請使用以下程式碼:

the_post();
img(200, 300);
?>

此程式碼會驗證文章縮圖是否存在,並裁剪圖片、將其保存在 uploads 資料夾中,然後產生一個圖片標籤。

若要驗證文章縮圖是否存在,您可以使用 has_img()




一些文字


若要裁剪非文章縮圖的圖片,您可以使用 crop($url, $size)

$cropped_url= crop( get_bloginfo('url') . '/wp-content/uploads/image.jpg', array(200, 300) );
?>

原文外掛簡介

For cropping a post thumbnail image to 200×300 pixels:

This will verify the existence of post thumbnail, crop the image, save it in uploads folder, and generate an image tag.
To verify the existence of a post thumbnail, you can use has_img()

Some text

To crop images that are not post thumbnails, you can use crop($url, $size)

各版本下載點

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

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


0.3.0 | trunk |

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

文章
Filter
Apply Filters
Mastodon