[WordPress] 外掛分享: WP Image Sizes

WordPress 外掛 WP Image Sizes 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「WP Image Sizes」是 2020-10-26 上架。
  • 目前有 60 個安裝啟用數。
  • 上一次更新是 2021-05-27,距離現在已有 1437 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.7 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.2.4 以上。
  • 有 4 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

aiwatech |

外掛標籤

sizes | images | gallery | thumbnails | image sizes |

內容簡介

在現代網頁設計中,設計師會在網頁上創建不同尺寸的圖像以營造吸引人的版面配置。 如果網頁是使用 WordPress 構建的,開發人員需要在主題中註冊每個圖像尺寸,以確保如果客戶上傳不同尺寸的圖像,不會破壞版面配置。

通過新的 WordPress 安裝,默認情況下會創建三個尺寸,例如縮略圖(150 x 150)、中等(300 x 300)、大型(1024 x 1024),這意味著每當上傳新圖像時,WordPress 將在服務器上保留至少四個圖像副本,一個原始圖像和 3 個根據圖像大小進行裁剪的圖像副本。

當開發人員/設計師需要不同尺寸的圖像時,他們會註冊更多的圖像尺寸,例如英雄、產品縮略圖、產品大圖、團隊成員圖像等,具體取決於頁面的設計。

現在假設我們在主題中定義了 3 個默認和 3 個自定義圖像尺寸,現在每當上傳新圖像,WordPress 將創建 6 個圖像副本和 1 個原始圖像,即使我們只需要在網站上的特定區域使用其中 1 個,其餘副本仍然存在於服務器上並且會佔用空間。 想象一下當我們有許多帖子和頁面擁有不同的圖像時,WordPress 創建了多少無用的圖像,這些圖像只會佔用服務器空間。 在 Woo-Commerce 網站的情況下,如果您需要為主頁上的新滑動圖像或關於頁面的英雄圖像上傳圖像,它將創建許多副本,包括 Woo-commerce 自己註冊的不同尺寸的產品圖像尺寸。

最終,網站速度和服務器空間會受到影響。

為了解決這個問題,我們開發了一個 WP Image Sizes 插件,此插件允許用戶決定每次通過 WordPress 上傳圖像時應該創建哪些圖像尺寸。

安裝 WP Image Sizes 後,它將創建一個設置頁面,用戶可以在其中為每個 CPT 指定圖像尺寸,例如,用戶可以為英雄/滑块 CPT 指定一個尺寸,為團隊成員和推薦信指定另一個尺寸。在為每個 CPT 指定圖像尺寸後,當用戶上傳新圖像時,WP Image Sizes 將只允許 WordPress 創建被指定給 CPT 的圖像尺寸的副本。

如果用戶嘗試從媒體上傳圖像,它將在媒體上傳器中顯示選項,以選擇用戶需要的圖像尺寸,WP Image Sizes 將只創建該圖像尺寸。

WP Image Sizes 插件可以節省大量服務器空間,並協助使 WordPress 網站更加快速。

PRO

WP Image Sizes 插件還有一個專業版,其中包括更多功能,請參閱此處

原文外掛簡介

In modern web designs, designers create different sizes of images on the web pages for attractive layout. If a web page is built using wordpress, a developer has to register every image size in theme to make sure, if client uploads an image of different size, it does not break the layout.
With a new WordPress installation, by default it creates three sizes e.g. thumbnail (150 x 150), medium (300×300), large (1024×1024) which means whenever a new image will be uploaded, WordPress will keep at least four copies of images on the server, one original image and 3 cropped image copies based on image sizes.
When developer/designer needs different size of image, they will register more image sizes e.g. hero, product thumbnail, product large image, team member image etc depending on design of the page.
Now lets say we have 3 default and 3 custom image sizes defined in theme, and now whenever a new image will be uploaded, WordPress will create 6 image copies and 1 original image even we need to use only 1 for a specific area on the website, remaining copies will remain on the server and will occupy space. Imagine when we have lots of posts, pages having different images, how many unnecessary images WordPress creates on the server which are useless and just eat server space. In case of Woo-Commerce website if you need to upload a new slider image for home page or a hero image for about page, it will create a lots of copies including different sizes of products image sizes which woo-commerce registers itself.
Ultimately website speed gets effected and server space as well.
To solve this issue, we built a plugin WP Image Sizes this plugin allows user to decide which image sizes should be created for every image being uploaded through WordPress.
After installing WP Image Sizes, it will create a setting page from where user can assign image sizes to each CPT. e.g. user can assign one size for hero/slider CPT, one size for team member, testimonials. After assigning image sizes to each CPT when user will upload a new image, WP Image Sizes will only allow WordPress to create copies of image sizes which were assigned to the CPT.
In case user tries to upload an image from a Media, it will show options in media uploader to select which image size user wants and WP Image Sizes will only create that image size.
WP Image Sizes plugin saves a lot of space on the server and plays a role to make WordPress website a bit fast.
PRO
WP Image Sizes plugin is also available in a professional version which includes more features See here

各版本下載點

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

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


1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 1.0.7 | 1.0.8 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | trunk |

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

文章
Filter
Apply Filters
Mastodon