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

Limit Image Size

外掛說明

Most users like to upload their fresh shotted pictures to WordPress directly from their digital camera, and what happens? Full disk, reach bandwith limit and slowdown the site with heavy images.

Limit Image Size is a smart plugin wich will limit the megapixel an image can have. When you upload an image, plugin will check if it have more megapixels than you limited, if so, the plugin will automatically resize the image to have that megapixel. This will save space in disk, site’s bandwith and will make your site faster.

Limit Image Size works with 3 methods to resize, not all of them will be enabled on your site but the plugin will choose the best one available for you. The 3 methods are:

  • ImageMagick – The best method with the best performance, but requires that your host have installed the ImageMagick extension on your server.
  • WebService – This method sends a copy of your image to a webservice which will resize it and sends it back to your site. It’s not the fastest way but is a good one for limited sites.
  • GD – This method is native to PHP but demands a lot of processing from your server. The plugin will use it only if no other method is available.

So, there is no cons to Limit Image Size. Just install it and you will never more need to care about the size of your pictures.

螢幕擷圖

  • Options page for Limit Image Size
  • Limit Image Size in Image description

安裝方式

  1. Upload the plugin directory limit-image-size to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Configure it at the Media menu in WordPress

常見問題集

Will the quality of images be sacrified?

No. In fact, you can also choose the quality of the final image, but it will not get this option everytime. When the options is ignored, the plugin will maintain the same quality.

What’s the ideal megapixel setting?

We recommend no more than 1.5 megapixel for images. If your image have a square format, with 1 megapixel it will have the dimensions of 1.536px x 1.536px. Most users use monitors with less than 1.440 pixels wide, so with 1.5 megapixel your image will still be larger than the resolution of mosts users.

Why can’t every site use ImageMagick?

Any site can use ImageMagick, but it must first be installed by your site’s server. You can check if your server have ImageMagick installed in plugion options section at the menu Media.

I got a Fatal Error message when uploading images after activating your plugin. What should I do?

If a Fatar Error is displayed is because the site doesn’t have enough memory to resize images. We have 4 recommendations in this case:
* Ask your host to install ImageMagick which demands much less memory.
* Try using the WebService, activating it’s option at the menu Media.
* If you’re trying resize a PNG image disable the option Resize PNG images. PNG images uses a lot more memory than JPG images.
* Ask your host to allow your site use more memory.

使用者評論

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

參與者及開發者

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

參與者

將〈Limit Image Size〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0

  • Limit Image Size now is fully compatible with MultiSite.
  • Fixed the math calculation when resizing an image higher than wider.
  • Fixed an issue which was informing a incorrect file size.

0.9

  • First Public Version