| 开发者 | nitinkrsing |
|---|---|
| 更新时间 | 2026年9月20日 08:24 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Settings > Media. WebP is recommended.Plugins > Add New, search for "Image Ninja", then click Install Now and Activate.Settings > Media and scroll down to Image Ninja: WebP & AVIF Conversion.No. Only images you upload after choosing a format are converted. Images already in your Media Library are not changed.
Yes. The uploaded image itself is saved as WebP or AVIF, so WordPress, your theme and page builders such as Elementor, Divi, Beaver Builder, Bricks, Breakdance, Oxygen and WPBakery use it like any other image. There is nothing to configure.
Not by default: the converted image replaces the upload, which saves disk space. To keep them, go to Settings > Media and tick Also keep a copy of the original JPEG or PNG under Original files. Each original is then saved next to its converted image (for example photo.jpg next to photo.webp), linked in the image details in the Media Library, and deleted when you delete the image. This applies to images uploaded after you switch it on.
Open the image in the Media Library to see the reason, or switch to list view and check the Image Ninja column. Usually the converted image would have been bigger than the original, which happens with some small icons and simple graphics, so the original was kept. Images uploaded before you installed Image Ninja, or while conversion was switched off, are shown as "Not processed".
Yes, by default. Photos from phones and many cameras contain the exact place where they were taken, and anyone who downloads the image from your website can read it. Image Ninja removes the location from converted images, from kept originals, and from JPEG photos that are not converted, without changing how they look. Camera details, copyright and colour profiles are kept. You can switch this off under Photo location in Settings > Media.
Not when your server has ImageMagick (the PHP "Imagick" extension), which most hosting providers offer. Image Ninja then keeps the colour profile, so photos from professional cameras (Adobe RGB, Display P3) look exactly the same. If your server only has the basic GD library, colour profiles cannot be kept, and colours in some professional photos may look slightly less vivid. Everyday photos from phones are not noticeably affected. Settings > Media shows which library your server has.
80 (the default) is a good balance for most websites, and 70 gives smaller files. Higher numbers mean sharper images but bigger files. Settings above 85 rarely look better, and can make a converted photo bigger than the original JPEG. When that happens and "Only convert an image if it gets smaller" is on, the JPEG is kept.
JPEG and PNG images uploaded through the Media Library, the block editor, the classic editor and page builders. Transparent PNGs keep their transparency. GIF, SVG and images that are already WebP or AVIF are left as they are. Images that other plugins import from a web address are not converted.
Image Ninja uses the image tools built into WordPress, so it works on most hosting. WebP needs ImageMagick or GD with WebP support, which almost every host has. AVIF needs ImageMagick with AVIF support or PHP 8.1+ with GD AVIF support. The Image Ninja section in Settings > Media shows what your server supports, and explains what to ask your hosting provider if something is missing. Formats your server cannot create are shown as unavailable.
WebP conversion takes a fraction of a second per image. AVIF takes a few seconds per image, depending on its size and your server. Each image is converted only once, when you upload it; your visitors never wait for it.
Images that were already converted stay WebP or AVIF and keep working. New uploads are no longer converted. Deleting the plugin removes its settings; kept original files are left in place.
The Media Library shows the result for every image. For technical details, enable WP_DEBUG_LOG in wp-config.php: Image Ninja then writes a line for each image to wp-content/debug.log, including which image library was used and the file sizes. Please include these lines when asking for help in the support forum.
WP_DEBUG_LOG is enabled.