內容簡介
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 庫。
外掛標籤
開發者團隊
② 後台搜尋「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=
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)]
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.
