Title: picowall
Author: mhazami
Published: <strong>2016 年 6 月 4 日</strong>
Last modified: 2016 年 6 月 4 日

---

搜尋外掛

![](https://ps.w.org/picowall/assets/banner-772x250.jpg?rev=1430616)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/picowall/assets/icon-256x256.jpg?rev=1430616)

# picowall

 由 [mhazami](https://profiles.wordpress.org/mhazami/) 開發

[下載](https://downloads.wordpress.org/plugin/picowall.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/picowall/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/picowall/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/picowall/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/picowall/#developers)

 [技術支援](https://wordpress.org/support/plugin/picowall/)

## 外掛說明

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

 1. English
 2. Persian (Farsi) – [(راهنمای فارسی)](https://github.com/iazami/picowall/wiki/Function-Reference)

#### 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.

## 安裝方式

Using the Plugin Manager

 1. Click Plugins
 2. Click Add New
 3. Search for `picowall`
 4. Click Install
 5. Click Install Now
 6. Click Activate Plugin

Manually

 1. Upload `picowall` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress and enjoy 🙂

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈picowall〉的開發相關工作。

參與者

 *   [ mhazami ](https://profiles.wordpress.org/mhazami/)

〈picowall〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/picowall/contributors)
為這個外掛做出的貢獻。

[將〈picowall〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/picowall)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/picowall/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/picowall/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/picowall/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/picowall/)。

## 變更記錄

#### 1.0

 * Hello World.

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **10 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.8.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.5.33**
 *  語言
 * [English (US)](https://wordpress.org/plugins/picowall/) 及 [Persian](https://fa.wordpress.org/plugins/picowall/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/picowall)
 * 標籤:
 * [image](https://tw.wordpress.org/plugins/tags/image/)[resize](https://tw.wordpress.org/plugins/tags/resize/)
   [resizer](https://tw.wordpress.org/plugins/tags/resizer/)[resizing](https://tw.wordpress.org/plugins/tags/resizing/)
 *  [進階檢視](https://tw.wordpress.org/plugins/picowall/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/picowall/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/picowall/reviews/)

## 參與者

 *   [ mhazami ](https://profiles.wordpress.org/mhazami/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/picowall/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://www.iazami.ir/)