In servers by hostinger works flawlessly. But in hostgator hosting, it gives this error:
WordPress vers?o 6.6.2
Tema atual: Bricks Child Theme (vers?o 1.1)
Plugin atual: Bulk image resizer (vers?o 2.0.1)
PHP vers?o 8.2.22
Detalhes do erro
================
Um erro do tipo E_ERROR foi causado na linha 112 do arquivo /home1/viabrasi/conexaosobretrilhos/wp-content/plugins/bulk-image-resizer/includes/class-bir-upload-new-file.php. Mensagem de erro: Uncaught TypeError: imagewebp(): Argument #1 ($image) must be of type GdImage, bool given in /home1/viabrasi/conexaosobretrilhos/wp-content/plugins/bulk-image-resizer/includes/class-bir-upload-new-file.php:112
Stack trace:
#0 /home1/viabrasi/conexaosobretrilhos/wp-content/plugins/bulk-image-resizer/includes/class-bir-upload-new-file.php(112): imagewebp(false, ‘/tmp/phpoNhjOH….’, 82)
#1 /home1/viabrasi/conexaosobretrilhos/wp-includes/class-wp-hook.php(324): bulk_image_resizer\Bir_loader_upload->handle_upload_prefilter(Array)
#2 /home1/viabrasi/conexaosobretrilhos/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#3 /home1/viabrasi/conexaosobretrilhos/wp-admin/includes/file.php(833): apply_filters(‘wp_handle_uploa…’, Array)
#4 /home1/viabrasi/conexaosobretrilhos/wp-admin/includes/file.php(1105): _wp_handle_upload(Array, Array, ‘2024-10-16 18:4…’, ‘wp_handle_uploa…’)
#5 /home1/viabrasi/conexaosobretrilhos/wp-admin/includes/media.php(306): wp_handle_upload(Array, Array, ‘2024-10-16 18:4…’)
#6 /home1/viabrasi/conexaosobretrilhos/wp-admin/async-upload.php(114): media_handle_upload(‘async-upload’, 0)
#7 {main}
thrown
Finally I found this plugin! Every pugin I’ve tried just convert to webp but keeps the jpg or png original attached to the post/page. this onw overrides the original and attach the webp, which is exactly what I need.
But i’m missing one little feature to be perfect: I dont need the original jpg/png file to be saved in my ftp. Is there a way to auto delete the original imagem after the webp conversion is done?
TIA
]]>When trying to run a “process images” command, WordPress throws a modal dialog box, one after another with this error message: “maybe you have some plugin that is interfering, because I didn’t get a valid json back. Try disabling the debug mode of the site or press OK to try to continue”
It looks like this error is being thrown as the tool loops through each image, as the dialog box returns immediately after clearing it. I run a minimal set of plugins, and thought it might be caused by Wordfence; I disabled Wordfence and re-ran the bulk command – same result.
Any idea how to configure WordPress correctly to not cause this error?
]]>Hi, great plugin btw. I’ve used it before with small website and works great!
Now I’m trying to use it for large website with many posts and image. It said “It is optimized to speed up the bulk process. 1000 images take a few minutes on a normal server”. But I’m on VPS with 4 vcpu 16GB ram, currently on php 7.4 on openlitespeed and it process 161/72087 in hours, while using about 25% CPU. What can I do to speed it up? Do I need to install a specific php extension or settings? I haven’t checked but I think we got imagemagick installed.
Thx in advance
]]>Hi! I am facing a strange error when I try optimize my wast media folder. Log is saying that images are processed but there are no new files created at all. First I thought it could be an issue with permissions but no, Ive check ftp and could confirem there were no new webp files at all.
Luckily your revert button saved the day but it would be great to use your plugin and optimize my web.
Thank you for any advice anybody can offer.
]]>I run test on my Localhost [12-Jul-2024 14:23:42 UTC] PHP Fatal error: Palette image not supported by webp in X:\xampp\htdocs\wp-includes\class-wp-image-editor.php on line 592
]]>The rename function of this plugin is very unique and I didn’t find in any other plugin, but I have suggestion to include more shortcodes especially for Woocommerce products, like: SKU, Vendor ID (for plugins like Dokan)
]]>Hi there!
First of all, thank you for this great plugin. It works well, except when I need to use it with the ACF WYSIWYG field.
I’ve noticed that after the bulk conversion process is completed, the HTML tags in the content of ACF WYSIWYG fields are encoded into HTML entities.
For example:
This:<h1>Hello</h1> <strong>World</strong>
Become this:u003ch1u003eHellou003c/h1u003e u003cstrongu003eWorldu003c/strongu003e
As you can guess, this is problematic since there’s no way to revert this once the process is finished. Do you have any thoughts on why this might be happening?
Thank you!
]]>Does it ignore existing webp files I already have? I’ve read that these types of plugins tend to mess up image links with page builders. Have you any experience using it on Elementor sites? Does it actually go into the database and update links to .jpg files to the new webp files in posts and pages? Thank you.
]]>Hello friend, I need the reverse, from WEBP to JPG, can you please add this feature?
]]>Hello,
Can you give me some information about the function that purges the original images after optimizing them? All my images seem to have been optimized correctly, but I can’t purge the original ones. For each the log shows me this:
1000 2024-05-01 10:21:30 8098 skipped
1001 2024-05-01 10:21:30 8099 skipped
1002 2024-05-01 10:21:30 8123 skipped
1003 2024-05-01 10:21:30 8133 skipped
1004 2024-05-01 10:21:30 8152 skipped
1005 2024-05-01 10:21:30 8172 skipped
1006 2024-05-01 10:21:30 8174 skipped
1007 2024-05-01 10:21:30 8183 skipped
1008 2024-05-01 10:21:30 8184 skipped
1009 2024-05-01 10:21:30 8197 skipped
1010 2024-05-01 10:21:30 8203 skipped
So everything is now optimized with a WebP image, but I’m stuck with all the old ones ??.
Thanks for your help!
]]>Hello,
We’re having a problem with Bulk Image Resizer plugin and hope you can help.
When we try to upload images to the Media Library on a number of websites we receive an error ‘The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task. Uploading a smaller image may help.
This wasn’t happening before and wonder if it may be a plugin conflict.
When Bulk Image Resizer plugin is deactivated, we have no problem uploading to the Media library.
Thanks for your help,
Terry
I have some images that are landscape (slideshow, page hero images) and others that are products in my store which are portrait (300x1000px)
Can I choose to resize by “long side”? IE: I want the product images to be 600 or 750px tall and of course scale the width accordingly.
]]>If I bulk convert images to webp will your plugin update the product images in WooCommerce?
]]>Hi,
I want my product images is resize then crop by Aspected Ratio (Example 1:1) “Center Center”.
How can I do that with your plugin?
Thanks ??
]]>I hope this message finds you well. I’m reaching out because I’ve been using Bulk Images Optimizer for optimizing my website, and it has done wonders for my Google optimization. However, I’ve encountered a bit of a challenge that I’m hoping some of you may have insights into.
The plugin offers a feature to convert images to the WebP format, which is excellent for performance and SEO. However, the issue I’m facing is that it transforms all images, including logos and small icons. This becomes problematic when composing emails and inserting images in WebP format. Some email providers don’t display these images, and transparent PNGs that were converted end up displaying with a solid black background.
The plugin doesn’t seem to offer a granular control to exclude certain images from this conversion process. Therefore, I’m looking for guidance on how I can revert the settings for specific images back to their original formats without affecting the optimization of the rest.
The plugin has been a game-changer for my site’s performance, and I don’t want to stop using it. I just need a way to manage the image format conversion more selectively.
Thank you in advance for your time and assistance. I’m looking forward to hearing from the community and finding a solution to this dilemma.
Best regards,
]]>I’d like to create multiple subsets of images — say with 600/600, 500/500, and 400/400 — with the max width and the max height selected. Is there a way to automate this so that future uploads would also honer these different presets (– maybe something to expand upon with future updates)? The reason for doing these sets is to implement a lazy loader which picks the image to use based on the device screen size.
Also, I am using the plugin Real Media Library and Plus WebP; could these have some conflicting unexpected effect when generating images?
Without having tried your plugin out, when using “Rename File” set to “Custom” how does this work — can you please expand on these options, and how to implement them. Say for a file of the name “my-file.jpg” would this result in the same outcome “my-file[uniqid].jpeg” as “[image_name][uniqid]“.jpeg (say for that one file?)
[uniqid] Generates a unique id
[md5] Is replaced with the md5 of the original name (what is md5)
[id] Is replaced with a sequential number
[image_name] Is replaced with the original sanitized image name
[rand] Generates a random character a-z0-9
[date] is replaced with the date the image was uploaded
[time] Is replaced with the time the image was uploaded
[timestamp] Is replaced with the upload timestamp of the image
Also, when doing nothing to file names, do file names get their typical “my-name-plus-the-size-600×600” at the end, with the actual image size in the name: “…-600[max]x600[max]”? So with a file of the size of say 1200 by 1000, would I get …-600×500 and …-500×417 and …-400×333?
Thank you.
]]>If you have wepb images they are converted to webp again.
For example world-pulse-image-01-jpg.webp was created as world-pulse-image-01-jpg-webp.webp
]]>Hello, We’ve had a problem on a couple sites when we upload an svg with this plugin activated and any other svg plugin (currently using Safe SVG), it converts the svg to a jpg.
Once Bulk Image Resizer is deactivated, this behavior stops and the svg uploads as expected.
Thanks for your help with this,
Terry
]]>Hi again, Giulio!
Its me again, the Pest!
I think it might be advised to put a sleep() statement somewhere before running a new post/image (not bulk generation) and/or change the priority. Maybe user-settable?
I am using a plugin called Magic Post Thumbnail (https://www.ads-software.com/plugins/magic-post-thumbnail/) and images don’t seem to be converted on upload.
Thanks for your work on this plugin!
]]>Ciao Giulio!
This is a wonderful plugin! Not many allow an option to delete an original ( never understood why; what’s the use if you are trying to save disk space?)!
I sometimes help developers wit their English at no charge. Your English is certainly better than my Italian, though! I noticed a couple of things:
First, you have a spelling error:
Line 54 should be:
$dim = array('60'=>'LOW', '75'=>'MEDIUM', '88'=>'HIGH');
You have misspelled “HIGHT”
Also the [‘quality’] variable is being saved to the options table, but not being retrieved (or, at least, displayed).
Thanks!
]]>Hi! Before giving it a try I wanted to know… How are the images processed? Are they sent to an external server or processed within the plugin? Is any data kept or processed outside the website? Is there a data protection policy?
Thx!
Hi everyone I have a VPS with my Wordpres site, the VPS is 1GB/1 Core from Digital Ocean. On the site I have 18,000 images approximately and many are large in dimensions. Already all the images are in WebP (only WebP). I want to resize all the images to 1024×768. These are my doubts:
A- What about the images I already have on the server in 640×480? Will the plugin ignore them?
B- Will 18.000 images take too many hours? Can I select from less to less?
Thanks
]]>Hi!
I installed the plugin and found this warning message.
“There is something about the site configuration that worries me:Zero size image string passed
You probably won’t be able to optimize images with this setup.”
Do you know what could happen?
Thank you!
]]>Hello,
I use IIS server and I got this error:
There is something about the site configuration that worries me:There seems to be no PHP library for manipulating images.
You probably won’t be able to optimize images with this setup.
What library do I have to install for this plugin?
]]>Hello,
Does it support auto crop images upon uploading?
Thanks
]]>Hi, I have few questions . What if we delete plugin ? The resized images will be served ?or it goes back to previous state . And also tell it rename the existing images when we resize. Or it creates separate image file . Or image file is same just resized it and renamed it with compress written at end. If it creates separate file of existing images then it will take much space ? As we have both files stored . Kindly tell if i delete the plugin what will happen.
]]>Hi there,
some time ago I was working already with your plugin, and I want to try again.
There is still one very important question that is not clear to me yet.
How will the plugin behave / or how will it work, when 2 separate plugins are running tasks on media-upload?
1. Resize → with your plugin
2. Optimize → with another plugin
It’s just still not clear if this can/should work or if conflicts are guaranteed.
Thanks in advance
Markus
]]>Is there a way to bulk revert back to the original image? I still have them saved, but I don’t see a simple bulk option to revert them back. Thanks.
]]>So here’s the thing, I have +100 images that are 150x150px, but I need to resize them in batch to at least 200x200px so that Facebook Open graph will pick them up as miniatures in the cards, or whatever it’s called ( when you share a link )
Unfortunately, every plugin that I tried can only reduce the dimensions.
Is that one also a one-way resizer ? and I can’t find any solution.
this is extremely distressing
]]>