[wordpress插件] Disable "BIG Image" Threshold禁用“大图像”阈值

wordpress 插件 文章 2020-04-17 17:50 529 0 全屏看文

AI助手支持GPT4.0

评分
88
描述

In WordPress 5.3, several improvements were made to how images are processed.

在WordPress 5.3中,对图像的处理方式进行了一些改进。

One of these improvements was the concept of “BIG images”.

这些改进之一是“大图像”的概念。

When an image is uploaded that exceeds the “BIG image” threshold (2560 by default), a new “full” size image is generated.

当上传的图像超过“大图像”阈值(默认为2560)时,将生成一个新的“完整”尺寸图像。

This new image is then used instead of the true original when generating image subsizes to reduce server load.

然后,在生成图像小尺寸以减少服务器负载时,将使用此新图像代替真正的原始图像。

Prior to 5.3, it was possible for the originally uploaded image to be displayed on the front-end, even when they were not “web ready”.

在5.3之前,即使原始上传的图像尚未“准备就绪”,也有可能显示在前端。

Unnecessarily large images can be bad for performance and wastes bandwidth (which is unfortunate for those with slow Internet, or bandwidth caps by their service plans).

不必要的大图像可能会降低性能并浪费带宽(这对于互联网速度较慢或服务计划限制带宽的用户来说是不幸的)。

This new full size image will now be displayed instead.

现在将显示此新的原尺寸图像。

There are some scenarios where disabling this threshold would be desired, though.

在某些情况下,希望禁用此阈值。

Maybe you run a photography site that

也许您经营的摄影网站

needs to display original images, or your theme has full screen backgrounds.

需要显示原始图像,或者您的主题具有全屏背景。

This plugin disables the “BIG” image threshold and preserves the true originally uploaded image as the full size.

此插件会禁用“大”图像阈值,并将真正上传的原始图像保留为完整大小。

For more information on the improvements to image processing in WordPress 5.3, check out these developer notes on the Making

-processing-in-wordpress-5-3 /“ rel =” nofollow“>注释 制作

WordPress Core blog.

WordPress核心博客。

安装步骤

    1. Upload this plugin to the /wp-content/plugins/ directory
    2. 将此插件上传到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

下载地址
https://downloads.wordpress.org/plugin/disable-big-image-threshold.1.0.zip
-EOF-

AI助手支持GPT4.0