前言介紹
- 這款 WordPress 外掛「Resize images before upload」是 2012-03-12 上架。
- 目前有 1000 個安裝啟用數。
- 上一次更新是 2017-11-28,距離現在已有 2713 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
- 有 22 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
wpsites |
外掛標籤
內容簡介
在照片上傳到你的網址(伺服器)前,將照片大小縮小,不需要使用圖像編輯軟體。只需將數位相機上的照片拖放到 WordPress 上。此外掛適用於 HTML5 相容的網頁瀏覽器,例如 Chrome 或 Firefox。
如果你的瀏覽器不支援 HTML5,則此外掛會將影像上傳運行時替換為 Adobe Flash 版本,以確保縮放功能能在更多的網頁瀏覽器中使用。但這會導致拖放功能失效,因為 Flash 不支援拖放(在 HTML5 相容的瀏覽器中可正常使用)。如果你在使用中遇到問題,或者拖放功能對你比縮放影像更重要,則可以在設定 -> 多媒體中禁用 Flash 覆寫。
此外掛不支援 iPhone 或 iPad。
此外掛可以解除上傳檔案大小限制並開啟縮放功能。
此外掛可在照片上傳到你的網址(伺服器)前,透過網頁瀏覽器對照片進行縮放。
此外掛在設定 -> 多媒體頁面中新增額外設定,讓你可以在縮放照片時指定圖像品質。品質值可範圍從 1-100,品質越高,檔案大小越大。預設值為 80,可降低檔案大小同時保持足夠高品質。你也可以在此處設定此外掛中的縮放尺寸,如果不滿意現有的預設大圖像大小設定。
上傳圖片時使用的主機頻寬更少
不再上傳大型圖像供使用者瀏覽/下載時等待
可以直接將數位相機中的圖像拖放到 WordPress 上傳器中,瞬間將照片上傳網路。
如果你想要強制指定縮放後的影像寬度/高度,並覆蓋多站使用者的影像設定(因為不能更改此值等等),則可以在 wp-config.php 中設定兩個常數:
define( ‘RIBU_RESIZE_WIDTH’, 1000 ); // 寬度 1000 像素
define( ‘RIBU_RESIZE_HEIGHT’, 900 ); // 高度 900 像素
define( ‘RIBU_RESIZE_QUALITY’, 75 ); // 設定品質 0-100,100 是高品質
defined( ‘RIBU_MAX_UPLOAD_SIZE’ ‘2097152b’ ) ); // 檔案大小以位元組為單位
為使設定能夠運作,任何添加到 wp-config.php 檔案中的設定都應該放置在以下這行程式碼之上:
/* That’s all, stop editing! Happy blogging. */
在 github 上查詢此外掛: https://github.com/WPsites/Resize-images-before-upload
貢獻者
Simon Dunton – http://www.wpsites.co.uk
原文外掛簡介
Resize your images before they are uploaded to your website (server), no need to use image editing software. Drag+drop images from your digital camera to WordPress. This plugin works best in HTML5 compatible web browsers such as Chrome or Firefox.
If your web browser does not support HTML5 then this plugin will swap your image uploader runtime to the Adobe Flash version which makes sure the resize function works across more web browsers. The side effect to this is drag+drop will be disabled since this is not supported in Flash (everything works in HTML5 compatible browsers). If you experience issues or drag+drop is more important to you than resizing images then you can disable the Flash override in your settings -> media.
This plugin does not work on the iPhone or iPad.
This plugin removes the upload file size limit and turns on the resize function.
Once this plugin is enabled your images will be resized in the browser before being uploaded to your website (server).
This plugin adds an additional setting to your settings -> media page that allows you to specify the image quality when being resized. The quality value can range from 1-100. The higher the quality the larger the file size. The default value is 80 which reduces the file size whilst still maintaining a decent quality image. You can also set the resize dimensions for this plugin here to, if you weren’t happy inheriting the default large image size settings.
Less bandwidth used for your host when uploading your images
No more massive images uploaded to your site for users to sit waiting to view/download
You can drag images right off your digital camera onto the WordPress uploader, getting them online in a flash.
If you want to force the resized image width/height, overriding the media settings (making it so multisite users cannot change this value etc) you can do this in wp-config.php by setting two constants:
define( ‘RIBU_RESIZE_WIDTH’, 1000 ); //1000 px wide
define( ‘RIBU_RESIZE_HEIGHT’, 900 ); //900 px high
define( ‘RIBU_RESIZE_QUALITY’, 75 ); //0-100, 100 being high quality
defined( ‘RIBU_MAX_UPLOAD_SIZE’ ‘2097152b’ ) ); //size in bytes
To work, any settings added to your wp-config.php file should be done above the line that reads:
/* That’s all, stop editing! Happy blogging. */
Find the plugin on github: https://github.com/WPsites/Resize-images-before-upload
Contributors
Simon Dunton – http://www.wpsites.co.uk
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Resize images before upload」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1 | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.7.1 | trunk |
延伸相關外掛(你可能也想知道)
Upload Larger Plugins 》這個外掛取代了內建的 WordPress 外掛上傳器,可以讓您上傳任何大小的外掛。, 如果您的網站主機有低的檔案上傳限制(一些預設的PHP安裝只有2MB的限制),而您要...。
Client Side Image Resize 》*** 注意事項 ***, 由於媒體庫的修改,此外掛僅可以與位於左側選單的媒體 -> 新增功能表項目下的「上傳新媒體」表單一同運作。如果您直接點擊媒體,並使用...。
Multi Uploader for Gravity Forms 》這是一個進階上傳外掛,針對那些需要比 Gravity Forms 預設多檔案上傳功能更多功能需求的使用者而設計。, 外掛選項頁面提供您精細控制許多 Plupload 參數的能...。