-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(v 1.10.1) Lib::error: Regenerate wp_create_image_subsizes( _, $attachment_id ) argument mismatch! #8
Comments
It could be a plugin conflict or new changes in wp media regenerate. Does regenerate work from web interface? Test:
Some images may indeed have invalid metadata
Warning is not from plugin. Try to disable conversion to sRGB. Or convert those problematic images to sRGB and upload again (or direct replace via ftp/ssh). There is an experimental setting in plugin that will force conversion to sRGB, even when color profile is undefined / unknown. But I never got such an image to test it. Try it. |
Maybe this could help with images https://wordpress.org/support/topic/convert-rgb-to-srgb/ |
I recently tested wp media regenerate for issue #5, but couldn't reproduce the errors. Maybe I still have older version of WP-CLI. |
WP-CLI 2.5.0 works well, no errors. On PHP 7.4 (cli). WP-CLI 2.7.0 generates weird errors. On PHP 7.4 (cli). Do you have Performance Lab plugin activated? |
Warning is probably not due to wrong ICC profile, but because of incompatibility with recent changes in WP-CLI. I'm still investigating ... |
FYI... I'd been in touch with the Performance Labs developers on an issue I was experiencing with Elementor Pro. When I ONLY had WebP files uploaded, it was generating WARPED JPGs!!!! it was also replacing the WebP files that I had used with those warped .jpgs. No Bueno!!! When they came back with an update, they said that it doesn't appear that WebP files can be generated from WP-CLI (but, I can't help but notice that yours seems to work 😉) when I followed your advice above (deactivate/reactivate via GUI, then watch debug.log while regenerating media), here's what I got. mind you, I tried swapping around a few of the plugin's settings during the process. ...worth noting, they regenerated! (my apologies in advance for the repeating errors)
|
here's my support ticket on Performance Lab plugin: |
OH! ...but, I'd forgotten to mention that the the PDFs kicked out errors... they can be ignored
|
In one |
There’s a setting in Settings > Media to also keep jpeg files. That’s where my issue was coming from, as I was *mostly* starting with webp images.
|
Warp iMagick handles only uploaded JPEG/PNG media types. Has nothing to do with uploaded WebP or PDF media. |
AFAIK, WordPress already allows uploading WebP and (re)generating WebP thumbnails. I'm not sure if they exactly know what and why they are doing with images in the Performance Lab. |
I do not know if |
I expect to fix/remove that error report in the next version of Warp iMagick.
|
As long as you DISABLE (don't enable).
Which replaces Warp_iMagick_Image_Editor Class with another _Image_Editor Class that implements function to get Image Dominant Color. Dominant Color is supposed to be used as image background color (visual improvement for lazy loaded images, I guess).
Reasons to disable (as far as I know):
Other Performance Lab options should work fine when enabled. BTW: My test version of PL is 2.2.0. |
Closing.
|
Recently I got the same message on one specific PNG image. As far as I can tell, libpng warning (via php-gd), Image is still regenerated without other errors/warnings. |
I'm actually running into this error now, myself.
The text was updated successfully, but these errors were encountered: