uBlogger icon indicating copy to clipboard operation
uBlogger copied to clipboard

[BUG] The picture on the home page doesn't seem to be full.

Open yqchilde opened this issue 3 years ago • 6 comments

Describe the bug

The picture on the home page doesn't seem to be full.

Expected behavior

The picture fills the whole area.

Screenshots

image

Build Environment

  • OS: macOS
  • Theme version/commit 2.0.1
  • Hugo version 0.80.0

Please try to use Hugo extended version before opening the issue.

Preview Environment

  • OS: macOS
  • Browser Chrome

yqchilde avatar Mar 14 '21 02:03 yqchilde

Please send this picture for testing

uPagge avatar Mar 14 '21 07:03 uPagge

In fact, any picture is not full, you can try this picture, I am directly using the network address.

Https://res.cloudinary.com/practicaldev/image/fetch/s--yjlrbrT6--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://thepracticaldev.s3.amazonaws.com/i/rlyibpr58qk49ci8y1rk.png

yqchilde avatar Mar 14 '21 08:03 yqchilde

изображение

uPagge avatar Mar 14 '21 11:03 uPagge

Did you configure it through the following two parameters in the article? I wonder if I made a mistake.

featuredImage: "Https://res.cloudinary.com/practicaldev/image/fetch/s--yjlrbrT6--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://thepracticaldev.s3.amazonaws.com/i/rlyibpr58qk49ci8y1rk.png" featuredImagePreview: "Https://res.cloudinary.com/practicaldev/image/fetch/s--yjlrbrT6--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://thepracticaldev.s3.amazonaws.com/i/rlyibpr58qk49ci8y1rk.png"

yqchilde avatar Mar 15 '21 01:03 yqchilde

Same problem here. All post thumbnails are affected. You can see it for yourself here: https://ublogger-test-v2-0-1.netlify.app/

Note:

  • Everything was working fine before updating to v2.0.x (it's fine on v1.3.x)
  • I use featuredImagePreview to set the thumbnails
  • The images are retrieved from a relative path (eg. /images/image.jpg)

farhan443 avatar Mar 15 '21 05:03 farhan443

Apparently this only applies to featuredImagePreview, thanks for the tip.

uPagge avatar Mar 15 '21 16:03 uPagge