• WordPress scales down very big images, adding a ‘full’ image with ‘-scaled’ suffix, and stores the original file and it’s name in the db. RT plugin however regens thumbails based on the ‘scaled’ image, so all the intermediate sizes are re-named. This can break images when combined with offloading etc.

    Unless I am missing something, this ‘-scaled’ resizing of big images is default wordpress functionality so the RT plugin should handle it properly by using the original image (using functions like wp_get_original_image_url, wp_get_original_image_path) etc, so as not to orphan a whole set of thumbnails, use the wrong full image and generate a new set of intermediate sizes.

    Eg:
    These are the currently registered thumbnail sizes, whether they exist for this attachment, and their filenames:

    • thumbnail: 280×178 pixels (cropped to fit) 8C2A3575-scaled-280x178.jpg
    • medium: 300×300 pixels (proportionally resized to fit inside dimensions) 8C2A3575-scaled-300x200.jpg
    • medium_large: 0×0 pixels (thumbnail would be larger than original)
    • large: 720×1200 pixels (proportionally resized to fit inside dimensions) 8C2A3575-scaled-720x480.jpg
    • avatar: 180×180 pixels (cropped to fit) 8C2A3575-scaled-180x180.jpg
    • 1536×1536: 1536×1536 pixels (proportionally resized to fit inside dimensions) 8C2A3575-scaled-1536x1024.jpg
    • 2048×2048: 2048×2048 pixels (proportionally resized to fit inside dimensions) 8C2A3575-scaled-2048x1366.jpg
    • featured-medium: 700×446 pixels (cropped to fit) 8C2A3575-scaled-700x446.jpg
    • featured-large: 1398×1398 pixels (proportionally resized to fit inside dimensions) 8C2A3575-scaled-1398x932.jpg
    • extra-large: 1598×1598 pixels (proportionally resized to fit inside dimensions) 8C2A3575-scaled-1598x1066.jpg

    The attachment says it also has these thumbnail sizes but they are no longer in use by WordPress. You can probably safely have this plugin delete them, especially if you have this plugin update any posts that make use of this attachment.

    • medium (old): 300×200 pixels 8C2A3575-300x200.jpg
    • large (old): 720×480 pixels 8C2A3575-720x480.jpg
    • thumbnail (old): 280×178 pixels 8C2A3575-280x178.jpg
    • avatar (old): 180×180 pixels 8C2A3575-180x180.jpg
    • 1536×1536 (old): 1536×1024 pixels 8C2A3575-1536x1024.jpg
    • 2048×2048 (old): 2048×1365 pixels 8C2A3575-2048x1365.jpg
    • featured-medium (old): 700×446 pixels 8C2A3575-700x446.jpg
    • featured-large (old): 1398×932 pixels 8C2A3575-1398x932.jpg
    • extra-large (old): 1598×1065 pixels 8C2A3575-1598x1065.jpg
    • cmplz_banner_image: 350×100 pixels 8C2A3575-350x100.jpg
    • This topic was modified 4 months, 2 weeks ago by 21stcn.
Viewing 1 replies (of 1 total)
  • Thanks for reaching out, and I am sorry to hear about the issues you are facing with the plugin and scaled images.

    Can you give us some more details and a few steps on what exactly happened? The more details you can share, like the exact size and type of image file you have trouble with, the better. I can then recreate the same on my test website and submit a detailed report to our developers to help fix the issue.

    If you like, you can also submit the report directly to our developers here

    https://github.com/Automattic/regenerate-thumbnails/issues

    What you’re describing does sound similar to me, from what you’ve shared so far, to this issue: https://github.com/Automattic/regenerate-thumbnails/issues/102

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this review.