Linux 软件免费装

Resize Image Before Upload

开发者 tmmtechnology
更新时间 2026年11月4日 18:01
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv3
版权网址: 版权信息

标签

woocommerce media library image upload image optimization image resize

下载

0.1.11 1.0.0 1.0.4 1.0.8 0.1.10 1.0.10 1.0.6 1.0.7 0.1.2 0.1.6

详情介绍:

Make large photos easier to upload. A camera photo can contain far more pixels than your website needs. Resize Image Before Upload scales supported JPEG and PNG images in the browser before they are sent to WordPress, giving your server a more manageable image to work with. Choose a maximum dimension once, then use your normal compatible WordPress uploader. Editors and contributors can skip the separate image-editor step for routine resizing. Less transfer. Less processing. Less repetitive work. Savings depend on the image, encoding, browser and upload workflow. Choose dimensions that suit your website and check a representative image before relying on the setting. Set the dimensions your website needs Open Media > Resize before upload and choose your maximum image size in pixels. The default is 2560 pixels. Supported oversized images are scaled to fit within that width and height while keeping their proportions. For example, a 6000 x 4000 photo resized to a 2000-pixel limit becomes approximately 2000 x 1333 pixels. The plugin scales the photo; it does not crop it into a square. Your source file on your device stays unchanged. Keep it separately if you need the full resolution for print, editing or future use. Useful wherever large photos enter your site For editors: resize article and gallery photos during a compatible media upload. For WooCommerce stores: apply the same size limit to product-image workflows that use the supported WordPress media uploader. For sites with contributors or sellers: enable resizing on the front end when the upload form uses the compatible uploader. Custom widgets and direct API uploads need their own handling. Choose where it runs Enable resizing everywhere, only in the WordPress administration area or only on the front end. The default WP-compat uploader mode works with compatible WordPress Plupload interfaces; an alternative bundled uploader version is available in settings. The plugin works on new uploads and leaves your existing Media Library unchanged. It focuses on pixel dimensions, with no bulk-library processing, target file-size control or automatic WebP/AVIF conversion. Start with one photo Install the plugin, choose your maximum dimension and upload a large test JPEG or PNG through the screen you actually use. Inspect its dimensions and appearance. Once the result suits your site, contributors can follow the same upload workflow for subsequent photos.

安装:

  1. Install and activate Resize Image Before Upload. PHP 7.4 or newer is required.
  2. Open Media > Resize before upload.
  3. Set the maximum image dimension in pixels. The default is 2560.
  4. Choose where resizing should run: everywhere, administration only or front end only.
  5. Keep the default WP-compat uploader mode initially and save your settings.
  6. Upload a large test JPEG or PNG through your actual Media Library, product-image or frontend workflow. Check the uploaded dimensions and appearance.
Test each custom upload form separately. Keep full-resolution originals outside WordPress if you will need them later.

常见问题:

How is this different from resizing an image after upload?

Resizing after upload requires the original image to reach the server first. This plugin resizes supported images in the browser before transfer through compatible uploaders, so the server can receive a smaller image. WordPress can still generate thumbnails and other image sizes after receiving the upload.

Does WordPress already resize images?

WordPress has built-in image scaling, and newer upload workflows can also provide browser-side processing. The behaviour depends on your WordPress version and the uploader used by the editor, Media Library or frontend form. This plugin targets compatible Plupload-based WordPress uploaders. If your workflow already resizes images before transfer, it may not need an additional plugin. Test the actual workflow rather than assuming every upload screen behaves the same way.

Which image formats are resized?

The bundled uploader's resize path targets JPEG and PNG images. Do not rely on it to resize GIF, SVG, WebP, AVIF, HEIC or other formats. WordPress and other plugins may handle those formats separately.

Will the plugin change photos on my computer?

No. It creates the resized upload in the browser and does not overwrite the source file on your device. When browser resizing succeeds, the uploaded image is the resized version; the plugin does not upload a separate full-resolution original.

Does it resize images already in the Media Library?

No. It applies to new uploads through supported uploaders. Existing images are unchanged.

Is this a compression or format-conversion plugin?

Its main purpose is to reduce pixel dimensions before upload. Resizing can involve re-encoding, but the plugin does not provide a target file-size setting or automatic WebP/AVIF conversion. It is not a replacement for every image-optimization tool.

Will image quality change?

Reducing dimensions removes image detail, and re-encoding can change appearance or file size. Choose dimensions suitable for your website, inspect representative photos and graphics, and keep your original files separately.

Does it work with WooCommerce product images?

It can work with product-image uploads that use the compatible WordPress media uploader. Test your product editor and gallery workflow, particularly when another plugin replaces the upload interface.

Does it work with frontend uploads and page builders?

Only when the workflow uses the compatible uploader and the plugin is enabled for that request context. Some visual page editors run on the front end, so an admin-only setting may not cover them. Custom upload widgets and direct API uploads are not automatically covered.

Will it fix every upload limit or server memory error?

No. Smaller images can reduce transfer and processing work, but browser memory, file validation, upload limits and server configuration still matter. A file may be rejected before resizing takes place. Very large images can also exceed the browser's own processing capacity.

Do I need an external image service?

No. Image resizing happens in the browser, and images are uploaded to your site's configured upload destination. The plugin's administrative notification service is described below.

Where can I get support?

Open a topic in the WordPress.org support forum or email wp@tmm.ventures. Include your WordPress and plugin versions, browser, uploader mode, enabled context, image format, original dimensions and the upload screen you used. Use a non-sensitive sample image when reporting a problem.

更新日志:

1.0.10 2026-10-30 Bugfixes 1.0.9 2026-10-13 Bugfixes 1.0.8 2026-07-03 Bugfixes 1.0.7 2026-06-30 Fixes 1.0.6 2024-05-02 Enhancements 1.0.5 2023-09-12 Enhancements 1.0.4 2023-09-09 Enhancements 1.0.2 2023-07-18 Enhancements 1.0.0 2023-05-16 Enhancements 0.11 2023-05-16 Enhancements 0.1 2023-01-29 Enhancements