[WordPress] 外掛分享: picowall

WordPress 外掛 picowall 的封面圖片。

前言介紹

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

外掛協作開發者

mhazami |

外掛標籤

image | resize | resizer | resizing | no-saving |

內容簡介

這個外掛可以讓你即時調整圖片大小,只要定義大小和調整方式即可完成。非常適合用於桌布和庫存攝影網站。

此外掛的功能包括:

- 支援多種圖片格式 (PNG、JPG、JPEG、GIF)
- 智慧調整大小 - 不會產生圖像失真!
- 可以根據精確的寬度/高度進行調整 (exact)
- 自動決定 - 讓腳本自行處理 (auto)
- 調整大小,然後裁剪並且不會失真 (crop)
- 調整後自動下載
- 強大的 shortcode。

語言:

- 英語
- 波斯語 (Farsi) - (波斯語)。

注意事項:

自動下載適用於各種設備和瀏覽器。您可以期望大多數用戶都可以使用此功能,但是有一些常識限制:

以下設備沒有文件系統,如 iPhone、iPad、Wii 等,並且無法保存檔案,很抱歉。

Android 支援起始於內建瀏覽器的 4.2 版本,雖然 Chrome 36+ 和 Firefox 20+ 在 Android 2.3+ 上的表現良好。

不支援 Blob 支援的設備無法下載 Blob 或 TypedArrays

舊裝置的 [下載] 支援僅能下載幾百 KB 的數據,並無法為檔案命名。

不具備 window.URL 支援的設備只能下載數兆的數據。

不支援 IE 版本 9 或更早版,因為它們不支援 a[download] 或 dataURL 框架位置。

功能參考資料:

使用此外掛有兩種方式:函數和 shortcode。

如果您不熟悉程式設計,可以使用 picowall shortcode 設置腳本,無需編程知識。

shortcode 屬性:

- size (必填) - 應至少定義寬度和高度,但也可以定義多個大小 (width、height、option|width、height、option|...width、height、option)。
- option (選填) (預設值:auto) - 定義您要調整大小的方式 (auto|exact|crop),如果您沒有定義此屬性,腳本將自動決定如何處理它。請謹記此屬性將對您沒有為其定義選項的每個大小區塊產生全域效果。
- sep (選填) (預設: 不換行空格 "” “) - 您可以使用此屬性定義一個字符,以區分輸出連結。

範例:

- 調整為精確的寬度/高度:[picowall size=”800,600″ option=”exact”]
- 調整為精確的寬度/高度 (多個大小):[picowall size=”800,600|1920,1080″ option=”exact”]
- 首先調整大小,然後裁剪,並且不會失真,而對於其他調整大小的圖像,僅調整為精確的寬度/高度,然後使用破折號分隔結果 (非常酷是嗎?!):picowall [size=”800,600,crop|1920,1080|150,150″ option=”exact” sep=”-“]
- 您可以看到我在上面的例子中使用了不同的語法,那是「大小區塊」:這意味著您可以使用不同的方式定義多種大小,只需像這樣定義即可:width、height、option|width、height、option|... width(n)、height(n)、option(n)。注意:使用垂直線 (|) 分隔大小區塊。請注意,如果您沒有為大小區塊定義選項,則該值的全域效果為預設的 auto。

原文外掛簡介

With this plugin installed, you could resize images on the fly. just define the size and the way that you want to resize then it’s done.
it is perfect for wallpaper and stock photography websites.
Features of plugin include:

support different images formats. (PNG, JPG, JPEG, GIF)
Intelligent sizing – No image distortion!
Resize by exact width/height. (exact)
Auto determine – let the script determine how to handle it. (auto)
Resize, then crop, with the exact size and no distortion. (crop)
Automatic download after resize.
Powerful shortcode.

Languages

English
Persian (Farsi) – (راهنمای فارسی)

Notes
Automatic download works with a wide range of devices and browsers.
You can expect it to work for the vast majority of your users, with some common-sense limits:

Devices without file systems like iPhone, iPad, Wii, et al. have nowhere to save the file to, sorry.
Android support starts at 4.2 for the built-in browser, though chrome 36+ and firefox 20+ on android 2.3+ work well.
*Devices without Blob support won’t be able to download Blobs or TypedArrays
Legacy devices a[download] support can only download a few hundred kilobytes of data, and can’t give the file a custom name.
Devices without window.URL support can only download a couple megabytes of data
IE versions of 9 and before are NOT supported because the don’t support a[download] or dataURL frame locations.

Function Reference
there is two way to use this plugin, function, and shortcode.
shortcode
if you’re not familiar with programming. then use picowall shortcode to setup the script without programming knowledge.
shortcode attributes:

size (required) – you should at least define a width and height but also you can define multiple sizes (width,height,option|width,height,option|… width,height,option).
option (optional) (default:auto) – define the way that you want to resize (auto|exact|crop) if you don’t define this attribute then the script will automatically decide how to handle it.
keep in mind that this attribute will make a global effect on each size block that you didn’t define an option for it.
sep (optional) (default: non-breaking space ” “) – with this attribute you can define a character to separate output links from each other.

examples
resize to exact width/height: [picowall size=”800,600″ option=”exact”]
resize to exact width/height (multiple size): [picowall size=”800,600|1920,1080″ option=”exact”]
resize then crop the first one and then for other ones just resize to exact width/height and then separate the results with a dash (pretty cool huh ?!)
picowall[size=”800,600,crop|1920,1080|150,150″ option=”exact” sep=”-“]
you can see that I use a different syntax in the last example. that is a “sizing block”.
it means that you can define multiple sizes with different ways to resize. simply just define it like this:
with,height,option|width,height,option| …. width(n),height(n),option(n).
note: use a vertical bar (|) to separate the size block.
keep in mind that if you don’t define the option for a sizing block then the value of “option” attribute will effect on that block. and also if you don’t define it there, then the script will automatically decide how to handle resizing.
functions
picowall($size,$option,$id)
this function will return an array of links to download resized images.
parameters

$size (required) – just like the shortcode you can define setting blocks too
$option (optional) (default: ‘auto’)- same as option attribute in shortcode.
$id (optional) (default: null) – if you use this function outside the loop then you have to define the id of post that you want to fetch photo from.

picowall_generate_links($size,$option,$sep,$id)
this function will print the result of above function in HTML.
parameters

$size (required) – just like the shortcode you can define setting blocks too
$option (optional) (default: ‘auto’)- same as option attribute in shortcode.
$sep (optional) (default: non breaking space ” “) – same as sep attribute in shortcode.
$id (optional) (default: null) – if you use this function outside post loop then you have to define the id of that post which you want to fetch photo.
u want to fetch photo.

各版本下載點

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

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


最新版本

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

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon