• Resolved hollykny

    (@hollykny)


    This is related to my post from yesterday in which I reported I was not able to create unique thumbnail overrides. That seems to be a WordPress issue. After much trial and error, here is what I discovered (and now I have a new issue that pertains to FooGallery).

    My WP default thumbnail settings are set to 225 x 225 pixels. If I try to override a thumbnail crop at the same size – 225 x 225 – the crop appears to save, but does not actually save.

    If I choose a larger size, such as 226 x 226, even 300 x 300, the crop *will* save, and at the 225 x 225 size, which doesn’t make any sense. So in order to override the default cropping functionality, I must choose a larger size to get it to save.

    THE NEW ISSUE WITH FOOGALLERY:

    In edit mode, I can see the new cropped thumbnail. But when I view the gallery on a page, it is not displaying the new cropped thumbnail. It’s displaying the WordPress default thumbnail that was created when I initially uploaded the image. Clearing the cache on the FooGallery page has no effect, nor does purging the server cache or browser cache.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author bradvin

    (@bradvin)

    hi @hollykny

    FooGallery generates its own thumbnails based on the image in the media library, but you can try and force it to use the build-in WP thumbs. This can cause issues if the thumbs are not the correct dimensions.

    When editing a gallery, scroll down and within the Thumbnails metabox, there is a “Force original thumbnails” checkbox that you can check and then save. If it does not work, then that means that WP cannot find a suitable thumb based on the dimensions used for the gallery.

    Thread Starter hollykny

    (@hollykny)

    Hello, @bradvin

    Thanks for your reply. Checking the “Force original thumbnails” box is working for me. But there’s still some strange behavior.

    If I add images to a gallery, and then override the default thumbnail cropping at exactly the same size WordPress is set to create the thumbnails (225 x 225px), the crop will not save. If I create the thumbnails larger, or use the 1:1 aspect ratio at a larger size, my overrides DO save. This seems to be more of a WordPress bug than FooGallery, though, but I wanted to mention it because it just doesn’t make sense that WP will not accept a thumb override at the exact dimensions it needs the thumb to be!

    Plugin Author bradvin

    (@bradvin)

    hi @hollykny

    Thanks for the info, but what do you mean by “the crop will not save”? Where does this occur?

    Thread Starter hollykny

    (@hollykny)

    Hi @bradvin,

    Here’s some additional info. Remember that above I stated that I now think this is a WordPress issue, not a FooGallery issue, but I’m surprised others aren’t reporting it as surely Foo customers want to override the WordPress default thumbnails at some point. I’ve posted on the WordPress support forum but have not received a reply yet.

    My WordPress Media settings are set to 225 x 225 square thumbnails.

    – Create a new page
    – Insert new jpg on page, size = thumbnail, link to media file
    – Works fine; WordPress cropped the thumbnail image from the center out, as to be expected

    I want to change the cropping of the thumbnail, so in page edit mode, I click the pencil icon on the image to edit the image, then click on Edit Original.

    I click on “Apply Changes to: Thumbnail” on the right, click on Crop. Under Image Crop > Selection, I type 225 x 225 as I want the new cropped thumbnail to be 225 x 225px so that it will replace the default created WP thumb. That adjusted the size of the lasso tool appearing over the image to a 225 x 225px square. I drag it around, choose my new crop, click Crop again, then click Save. Next screen I click Update. Then I update the page. The image is still cropped as the WordPress default. My new custom crop did not save or appear. Yet I can see it on the server. It didn’t overwrite the original WP generated thumb, but rather, created a new version with a much longer filename.

    Editing the image directly in the media library also will not save the cropped image.

    If I repeat the above steps, but this time do one of two things, the crop WILL save and will appear on the actual page.

    1 – Instead of choosing a 225 x 225px size, I choose 226 x 226, or 230 x 230, or 300 x 300, and so on. ANY size except 225 x 225 will save and will appear on the page as the new thumbnail. This makes no sense. I want to override a 225×225 with another 225×225.
    2 – I can also choose aspect ratio = 1:1 instead of typing in a pixel size under Selection. That will let me crop the image for a new thumbnail with a 1:1 square ratio and allows me to save it, and will appear on the page as the new thumbnail.

    At first I thought this was a FooGallery issue, as it appeared while I was trying to create custom cropped thumbnails from inside Foo. But then I tried to isolate the problem by changing my theme to 2021, deactivating most plugins, and testing images on pages outside of FooGallery and the problem exists there. It also exists on another hosting company’s server.

    Plugin Author bradvin

    (@bradvin)

    Thanks for the detailed explanation @hollykny

    It seems to be a bug within WP core

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Unable to display unique thumbnails’ is closed to new replies.