Misleading message when image size limit changed

I embedded a series of URLs to some particularly large images, and when I checked back the expected ‘image larger than 4096kb’ message was displayed next to the links.

As it’s a private instance I amended max attachment size kb and max image size kb to 12288kb (12MB) and went back to the topic.

Now all of the images instead bear the message (image larger than 12288KB) despite only one being >12MB.

Steps to repro:

  • Link a large image which exceeds limit
  • Wait until file sizes are checked and local download attempted
  • Raise limit
  • Revisit post
1 Like

Wait so a rebake fixes this? The feature request is to force a rebake on all the posts with images if you fiddle with the setting?

1 Like

I couldn’t wait for a rebake as the embedded images had turned into links and people needed to see the imagery. I can retest later to see if it’s the case.

The bug is that the error message reflects the file size, even if the file isn’t larger than the new specified value. I get bringing the value into the message, but it’s not helpful if it’s not accurate.

Rebuild HTML definitely didn’t work.

In the end I threw a garbage querystring on the back of the image URLs so that they would be considered different and be checked again.

4 Likes

I’m also facing this issue. A rebake doesn’t work, the image larger than message is shown even if the image is not larger than the limit.

Is there any workaround that can be applied in batch? I assume there’s a file size cache, any way to purge it?

EDIT: Solved in my instance deleting the large_images array from all posts’ custom_fields via Rails console

Thanks.

1 Like