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

NextGEN Image Cropper

描述

NextGEN Image Cropper uses the jQuery jCrop plugin(included) to allow a user to crop an image within a NextGen gallery.
Using NextGen Gallery libraries, a backup of the original image is made and the image is cropped based on selected dimensions and saved.
The NextGen image meta data is also updated with the new image dimensions.

螢幕截圖

  • Select the area you wish to crop.
  • View the new image with a confirmation message.

安裝

Requires jQuery 1.7 (or higher)

Requires NextGen Gallery plugin (1.8.4 or higher)

  1. After activating, select Manage Gallery under the NextGen Gallery menu.
  2. Select your gallery to display the image list.
  3. Each image now has a Crop link.

You will also see a new menu item called Image Cropping where you can set the default cropping dimensions and maximum image display size which is helpful for scaling large images.

常見問題

Q: How could I automatically set the cropping dimensions based on my theme (for a homepage slideshow for instance)?

A: The plugin options are stored as a site option array called ‘ngg_crop’. You can set the cropping dimensions by adding these lines to your functions.php file in your theme directory.

 // Set the dimensions of the Home Page slideshow
 $ngg_crop = array();
 $ngg_crop['crop_width']    =   400;
 $ngg_crop['crop_height']   =   400;
 $ngg_crop['imagesize'] =   500;

 update_option('ngg_crop', $ngg_crop);

評價

There are no reviews for this plugin.

貢獻者及開發者

“NextGEN Image Cropper” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 NextGEN Image Cropper 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.2 – 02.26.2013

  • Fixed: Crop link missing when using foreign language

1.1 – 02.26.2013

  • Fixed: Crop form action url (Removed $_SERVER[‘REDIRECT_URL’])
  • Changed: Converted all jQuery events to .on (requires jQuery 1.7)
  • NEW: Added link to edit thumbnail after cropping image

1.0 – 12.25.2011

  • Initial revision