I installed on a new server with nginx and php 8.4 with latest WordPress, opened the dashboard and got the following error:
ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it’s running React 17. Learn more:?https://reactjs.org/link/switch-to-createroot
The WordPress debug.log is empty. Looks like a js dependancies error.
Currently, the plugin is not working any more.
]]>When your plugin (Perfect Images) is installed, the Frontend Editor of WPBakery experiences an issue where elements that are updated disappear from the page.
When you edit an element in the WPBakery Frontend Editor and save your change to that specific element, WPBakery attempts a live preview refresh of the content. When Perfect Images is installed, the recently edited Element disappears. If you Save Draft or Publish the page and view the front end, the changes are recorded. If you refresh the editor you can see that the changes are recorded. It’s just the preview that breaks.
I’m trying to regenerate images to delete old ones. It didn’t seem to be doing anything, but then I found the legacy option. That appears to work, but they’re not being deleted from the server.
It also seems to freeze up a lot.
Perfect Images isn’t generating the AVIF images, although the links to those images work (broken links, leading to 401 pages). Nothing can be found in the error logs, and according to WordPress Site Health our website can handle AVIF images (Imagick and GP are both installed).
Have any suggestions or solutions?
]]>hello, I only want to delete the biggest pictures to save space on server, but I find the tutorial unclear on this point. Will the biggest pictures be deleted by just unchecking the tick box on the General tab ? or what else do I need to do to delete the biggest images ? If I click Regenerate it seems that all pictures will be regenerated ? Thank you for your help.
]]>Hello Perfect Images:
On the dashboard there are two options for which I cannot find a description. What is the difference between “Regenerate x entries” and “Regenerate x entries (optimized)”?
Thanks.
]]>Usually we convert for many reasons, for better website loading speed, and also saving space
So if am not interested to keep the original images, is there any option to delete every image after being converted?
]]>Hi,
“Regenerate all entries” and “Regenerate all entries (optimized)” are not completing. The progress freezes after a certain time.
Errors in debug.log:
Environment:
WordPress 6.6.2
WooCommerce 9.3.3
PHP 8.2.24
max_execution_time : 14400
memory_limit : 512M
wp_memory_limit : 256M
wp_max_memory_limit : 512M
Bonus question:
What is the difference between “Regenerate all entries” and “Regenerate all entries (optimized)”? (I couldn’t find the information in the documentation).
Thank you in advance.
]]>How to disable the note in WP admin
JetPack’s?Photon?module breaks features built in WP Retina 2x (as Photos moves the files away). A common and better alternative to Photon is to use?MaxCDN?(very popular), CloudFlare or Fastly.
]]>Since the last update, I’m seeing this warning in my logs when calling ‘wp_delete_attachment’.
Object of class WP_Post could not be converted to int in /wp-includes/class-wp-hook.php on line 89
Your plugin adds the action ‘delete_attachment’ to call a function with the same name in the plugin file ‘classes/engine.php’. The problem is in this function on line 511:
$shouldDeleteWr2x = add_filter( 'wr2x_should_delete_attachment', true, $attach_id, $post );
This should be ‘apply_filters‘ instead of ‘add_filter’ (you’re passing the $post object as the 4th param to add_filter, which generates the warning). Please update this in the next release.
Thanks for the great plugin!
]]>I just found out that unchecking the checkbox for different sizes will lose connection with the generated image
I uploaded product images and auto generated AVIF files
In the beginning it worked so I did not check but after uploading well over 1300 images I checked again and AVIF is not processed (SRCSET is not set)
So I unchecked all sizes both thumbnail and avif and only left 1 size that I wanted to check and regenerate (its a thumbnail with size 495x495
After a while I just rechecked the boxes for all sizes to regenerate all images just to find out that all currently generated files are ignored and new files are generated....
https://snipboard.io/pyoEBa.jpg
Steps to reproduce
install plugin
check all boxes for thumbnails you like and also for AVIF.
Upload all your product images
Uncheck all boxes for both AVIF and thumbnail
Refresh wait for a while at least that is what I did.
Then check the plugin page for generation of files
you will see all boxed are light bleu as you see in my screenshot
If you then regenerate the images the original is ignored and the scaled version is being created.
I hope I dont have to manually delete all original generated files and then regenerate them again....
Wasted almost 100 hours of work.
]]>
Hey, I am uploading webp images directly since years, I am currently unsure about the settings. If the retina image is already a webp, should I enable the webp? I deliver the webp direct via a nginx setting, if some image is not webp, it gets converted by ewww on the fly.
So, what are the correct settings to deliver all images in webp without double loading or waste calculating power?
Kind regards
]]>Hi
I just found out that the plugin does not show ALL image files present in the media library.
Files named like SIGNS_1-scaled simpy do not show up. Even if this is the file that was originally uploaded and can be found under that name in the media library.
Hope you can fix this.
Hello, when using PHP 8.3 with LibGD 2.3.3 and ImageMagick 7.1.1, the transparent background turns black when building a retina for PNG images. This happens to all PNG images. I thought ImageMagick 6.9 was causing the issue, but after updating to 7.1.1, the problem persisted. The PHP imagick version is 3.7.0. I believe the issue is with the updated GD library. Could you please help?
Thank you!
]]>Jordy, this warning appears quite frequently . Ive yet to find if its a real issue . Perhaps it is related to the issue with the analytics plugin and Flatsome Theme I’ve reported elsewhere ? :
Warning: Trying to access array offset on value of type bool in?/wp-content/plugins/wp-retina-2x/classes/engine.php on line 250
Hi Jordy,
This link doesn’t work:
Are you interested in optimizing your images (including?AVIF) without slowing down your own server, while using a powerful CDN? This all-in-one solution now exists and is very affordable thanks to an unique partnership between Meow Apps and Easy IO (EWWW). More information is available?here.
Additionally, the “Tutorial” link doesn’t work either:
https://meowapps.com/wp-retina-2x-tutorial/
Hi, If I use Imagify form wp rocket to optimizie images and make AVIF if it if smaller, will your plugin then also make retine Avif images of them?
]]>Hello
I use Perfect Images.
I use also the Polylang Pro plugin for translating my website.
When I delete a ‘translated image’ from the media library, the original files are preserved. However, the @2x files are deleted.
How to prevent these files generated by Perfect Images from being deleted?
Below is the reply from Polylang support:
“We are not familiar with this extension and Polylang Pro is not compatible with it.
We know that the developer of this extension makes a large number of its extensions compatible with Polylang.
Have you contacted him to report this problem?
Perhaps he has a solution to get around this problem.”
Thank you for your help.
Regards.
Hi guys,
I’m using the following function to remove the unwanted images sizes. But when I activate it, your plugin stops working.
Can you please advice?
/*
* WordPress: Remove unwonted image sizes.
* In this code I remove the three sizes medium_large, 1536x1536, 2048x2048
* See full article:
*/
add_filter('intermediate_image_sizes', function($sizes) {
return array_diff($sizes, ['medium_large']); // Medium Large (768 x 0)
});
add_action( 'init', 'j0e_remove_large_image_sizes' );
function j0e_remove_large_image_sizes() {
remove_image_size( '1536x1536' ); // 2 x Medium Large (1536 x 1536)
remove_image_size( '2048x2048' ); // 2 x Large (2048 x 2048)
}
There are a few errors in the console.
TypeError: Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
Fn https:///elementor/wp-content/plugins/wp-retina-2x/app/index.js?ver=1715004649:2
Fn https:///elementor/wp-content/plugins/wp-retina-2x/app/index.js?ver=1715004649:2
Be https:///elementor/wp-content/plugins/wp-retina-2x/app/index.js?ver=1715004649:2
useMemo https:///elementor/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10
useMemo https:///elementor/wp-includes/js/dist/vendor/react.min.js?ver=18.2.0:10
nr https:///elementor/wp-content/plugins/wp-retina-2x/app/index.js?ver=1715004649:2
wt https:///elementor/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10
]]>
Hey guys,
I have disabled all unnecessary thumbnail sizes but after building the thumbnails, they are still there and they are not deleted from my uploads directory. Is it possible to delete all unregistered thumbnail sizes with your plugin?
For reference, this option is available in the Regenerate thumbnails plug-in by Viper007Bond:
Delete thumbnail files for old unregistered sizes in order to free up server space. This may result in broken images in your posts and pages.
I want to delete the thumbnail files for old unregistered sizes in order to free up server space by using your both plugins – media cleaner or perfect images. Is that possible?
]]>Hello I am having this problem on pagespeed and no matter what I do it doesn’t seemed to work
Image natural dimensions should be proportional to the display size and the pixel ratio to maximize image clarity.?Learn how to provide responsive images.
BZ Locals Logo
<img width=”154″ height=”39″ src=”https://bzlocals.com/wp-content/uploads/2024/08/BZ-Locals-Logo-156-x-40-px…” class=”custom-logo” alt=”BZ Locals Logo” decoding=”async” srcset=”https://bzlocals.com/wp-content/uploads/2024/08/BZ-Locals-Logo-156-x-40-px…” sizes=”(max-width: 154px) 100vw, 154px”>
(bzlocals.com)
154 x 39
156 x 40
231 x 59
]]>When uploading a portrait image to a WooCommerce product, I expect it to be cropped to the landscape size I have defined in my theme for the archive pages. The portrait version is showing instead.
In my media library, I have a column that shows the available thumbnail sizes, and the portrait images don’t show any available. So I go to Perfect image and regenerate them. Now they show. But the portrait version is still showing on my archive page.
I tried clearing my cache, but it still shows the portrait image. Then I look at the Media Library and Perfect Images again and both show the thumbnails are not there. If I view in FTP, I can see the thumbnails exist!
I also tried uploading through the Media Library instead of via the Woo Product page. It shows the thumbnails were created, but the proper landscape thumbnail is still not showing on my archive page. I refresh the Media Library and Perfect Images and the thumbnails are gone again.
It seems to only be happening to portrait images. Any idea what’s going on?
Hello Jordy,
I have setup my CDN in WP Fastest Cache plugin to connect with the CDN provider.
But in Perfect Images I see in advanced the option to fill my CDN domain.
Do I (also) have to fill my CDN here?
]]>FYI, the browser console is reporting:
Uncaught ReferenceError: regeneratorRuntime is not defined
b vendor.js:1
index.js:12
Webpack 16
vendor.js:1:158129
Settings pages do not load. This is in Perfect Images Version 6.2.9.
js.
]]>I have been using Perfect Images successfully for years.However, I was running out of space on my server provider’s data plan and decided to offload my images to an Amazon S3 bucket. To do that, I use the plugin WP Offload Media, which automatically sends images to the bucket so they can be served from that location. This works fine with the exception of Retina images. Apparently Perfect images does not add retina info to “_wp_attachment_metadata” for the images, so the offload plugin doesn’t see the @3x versions of the images which results in no retina images being served. Any advice ? I’ve contacted the Offload Media creators to get this far…
]]>Within the last week or so (not sure exactly when, it may have been a bit longer than a week but not more than 2) our images stopped showing up on the website (front end) and in the back end (media library). I’m sure they exist on the server because I can click on any entry (which shows the gray box with a question mark in place of the thumbnail) and then click on “edit image” and THEN I can see the original image, but ALL WP-created versions and custom versions (all sizes and thumbnails) just basically will not display. I can see them on the server using FTP, so I know they have not been deleted, they just won’t show up on the page or back end.
I tried to use the “regenerate images” function (several times, it never completes and keeps timing out).
I also use the RabbitLoader plugin, which I am pretty sure does not conflict with Perfect Images, because it just basically serves up all assets from a CDN. Deactivating the RabbitLoader plugin and clearing the cache does NOT fix the issue, so I am unsure of what to do next.
I have not added any other new plugins in the last year, and all are current. Version of WP is 6.5.5, current version of PHP is 8.2……can you advise any further troubleshooting steps I can take?
Hello, when I create a custom size in the plugin, it doesn’t show up in the default Media Library selector. I see it in my theme’s image settings, but not the WP drop-down. It’s a fresh WordPress install. Is there anything special I need to configure?
]]>Hi,
I am trying to update my settings for perfect images on 2 different sites that are part of a multisite setup. The sites are hosted under hostname.host.com and subdomain.hostname.host.com. The hostname.com site works fine, but when I try to access the Perfect Images tool under subdomain.hostname.com it is returning a 404 page for the query at:
https://subdomain.hostname.host.com/index.php/wp-json/wp-retina-2x/v1/stats?search=
And then all of the subsequent JS calls just fail:
react-dom.min.js?ver=18.2.0:10 TypeError: t.map is not a function
at index.js?ver=1720457367:2:95934
]]>
After the plugin updated to 6.6.1, most images on my site stopped loading. That includes coverage images, galleries, and images coming from query loops. Un-disabling responsive images in the Advanced pane (so turning responsive images back on) fixed the issue.
]]>Hi Developers,
the Pro-Version Perfect Images 6.5.9 breaks the website and results in a white page.
Could you check please and fix the error? ??
Thx
Techinfo: WordPress 6.5.4, PHP 8.2.20, MySQL 8.0.36-28
]]>