[WordPress] 外掛分享: Picture grabber, resizer and cropper

首頁外掛目錄 › Picture grabber, resizer and cropper
10+
安裝啟用
尚無評分
1085 天前
最後更新
問題解決
WordPress 6.1.1+ v0.32 上架:2009-02-25

內容簡介

Picgrab 是一個能夠即時下載、調整大小和裁剪圖片的外掛。
只需要在您的文章中的圖片標籤中添加 "resize" 屬性即可開始抓取和縮放圖片。

例如:
<img src=”http://farm4.static.flickr.com/3532/3243887563_700849f242.jpg” resize=”402×200c;66y” />
啟用外掛後,它將會以類似以下格式替換 img 標籤中包含 "resize" 屬性的 "src" 屬性:

http://yoursite/wp-content/plugins/picgrab/resize.php?url=<編碼字元>&size=<編碼字元>
並移除 "resize" 屬性。

外掛中包含的 resize.php 腳本將會執行抓取、裁剪和縮放圖片的工作。
它還會管理快取。
"resize" 屬性的格式是:

[(x0,y0,xs,ys)]<xd>x|x<yd>|<xd>x<yd>[c[<crop>]][;<cachetime>]

例如:100x、x200、100×50、100×200c50、100×200c

請參考此文章以了解更多有關縮放工具的語法。

PicGrab 要求 Php 版本>=5、gd 和 curl 庫。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.32) 或搜尋安裝

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

原文外掛簡介

Picgrab is a plugin that download, resize and crop an image on the fly.
Simply add the “resize” attribute in the img tag you want to grab & resize on your post.
E.g.

Once activated, the plugin replaces the attribute “src” on img tags containing the “resize” attribute with something like:
http://yoursite/wp-content/plugins/picgrab/resize.php?url=&size=
and removes the “resize” attribute.
The resize.php script included with plugin does the work to grab, crop and resize the image.
It also manages the cache.
The resize attribute format is:
[(x0,y0,xs,ys)]x|x|x[c[]][;]
e.g. 100x, x200, 100×50, 100×200c50, 100×200c
Refer to This post for more informations on resizer syntax.
PicGrab require Php version >=8, gd and curl libraries.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon