• Resolved andjagdev

    (@andjagdev)


    I’m having trouble with featured images in post grid block and those images not being displayed in a correct image style. They do not have the same height and they are displayed in original scale.

    I have high resolution images, and according to Regenerate Thumbnails plugin all possible sizes are available. When I select image sizes in the post grid plugin, the images in the grid are not being resized, and they still use the original scaling of the image rather than being cropped/rescaled to the dimensions that the image sizes are set to. When I choose the AB image sizes, I get the warning that there is no image generated for this size, but when I check those images individually on Regenerate Thumbnails plugin, those sizes exist.

    I get no warnings and no errors in the console of the browser. When I turn “Display featured image” toggle button off and on, the images are presented how I expect them to be, but after saving the page or just clicking out of the post grid block, the images are reset to the original scale again.

    Do you know why this behaves like this?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author atomicblocks

    (@atomicblocks)

    Thanks for the feedback! I’ll take a look at this and report back when I track down the issue.

    Same here.
    I’ve regenerated thumbnails (twice), and double-checked that the correctly sized images are in the uploads folder.
    If AB image sizes are selected a warning icon appears over the thumbnails. Any other size is accepted without any warning (if the original uploaded image is big enough).

    Same here. Very annoying!
    The thumbnails are generated in the correct size (ab-block-post-grid-landscape: 600×400 pixels), and the grid settings say that the Image Size is ‘AB Grid Landscape’ and the Featured Image Style is ‘Landscape’, but nevertheless I get the warning icon and if I look at my page and use ‘inspect element’, I can see that the the original size of 1200×600 is still being used. This is all the more annoying because in this way, the proportions of the images have changed and the look of the grid with it.
    Hope this issue will soon be resolved!

    • This reply was modified 5 years, 5 months ago by henriette123.
    • This reply was modified 5 years, 5 months ago by henriette123.
    • This reply was modified 5 years, 5 months ago by henriette123.
    Plugin Author atomicblocks

    (@atomicblocks)

    Howdy folks,

    Thanks for your patience while we work this out! We’re working on a big update for next Wednesday, and then we’ll get a bug fix out for this when we track down the issue. Thanks for the feedback!

    Hi, I am now running version ab 2.0, but the problem is still the same… Any news on this yet? Or otherwise some idea for a workaround?
    Would really appreciate some solution!

    I’ve found the only solution is to rollback to Version 1.7.1

    eventually I’ll need to migrate away from atomic blocks as this issue has been present for a while and is present in v2

    OK, for the moment I have just made a quick css workaround. My featured images all have the same size of 1200x600px because they are also the post heading images. But in the grid I wanted them to be displayed with a 3:2 ratio.

    So I added this code to my stylesheet (in my child-theme):

    /* quick fix for missing 3:2 image ratio in AB grid */
    .ab-block-post-grid-image {
    overflow: hidden;
    }

    .ab-block-post-grid .ab-block-post-grid-image img {
    object-position: -16% 0;
    object-fit: cover;
    height: 100%;
    width: 130%;
    max-width: 133%;
    }

    Based on the aspect ratio of your original images (which should be the same for all of them), you just need to change the percentages.

    I have not tested it in all browsers…

    • This reply was modified 5 years, 4 months ago by henriette123.
    • This reply was modified 5 years, 4 months ago by henriette123.
    • This reply was modified 5 years, 4 months ago by henriette123.
    • This reply was modified 5 years, 4 months ago by henriette123.
    • This reply was modified 5 years, 4 months ago by henriette123.
    • This reply was modified 5 years, 4 months ago by henriette123.
    Plugin Author atomicblocks

    (@atomicblocks)

    Howdy folks, we have an update coming next week to address the image issues mentioned here. Stay tuned!

    Did this fix get implemented?

    I see no mention of it in the changelog for 2.0.1

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Post grid featured images bug’ is closed to new replies.