SmartCrop not working – troubleshooting help
-
Hi,
I’m also experiencing issues with the plugin.
I disabled all plugins and tested with Twenty Nineteen.
What I found was that it appears to be failing because the images don’t have a ‘size-‘ class. My images, when they come through in a post, literally only have one class: for example ‘wp-image-7314’.
I have traced this through to the function ‘get_id_and_size_from_tag’ where the size given is
false
as a result of not having the required class, and thus the image is not processed by thethe_content
filter.For me, this appears to be happening because of the gutenburg editor which seems to prefer that you resize images manually… and doesn’t give size classes as a result.
Additionally, post thumbnails aren’t being processed (even though they have the ‘size’ class) and unless there’s something I haven’t yet understood from your code, these images aren’t captured by the
the_content
filter and so are not being processed at all.Hope that gives you something to work from.
- The topic ‘SmartCrop not working – troubleshooting help’ is closed to new replies.