最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

media - Thumbnail images chopped off but not cropped to exact dimensions

programmeradmin1浏览0评论

In Media Settings I have Thumbnail sizes set to width and height of 150 and "Crop thumbnail to exact dimensions (normally thumbnails are proportional)" is not checked.

Since the checkbox is not checked, shouldn't the entire image be retained (since thumbnails are supposedly proportional)? However, it is not (see below). Why is this?

In Media Settings I have Thumbnail sizes set to width and height of 150 and "Crop thumbnail to exact dimensions (normally thumbnails are proportional)" is not checked.

Since the checkbox is not checked, shouldn't the entire image be retained (since thumbnails are supposedly proportional)? However, it is not (see below). Why is this?

Share Improve this question asked Jan 6, 2021 at 19:35 AnthonyAnthony 311 silver badge5 bronze badges 3
  • 1 Was that image uploaded before, or after you changed the setting? Media settings are only applied to uploads, WordPress can't go back and change images that have already been uploaded – Tom J Nowell Commented Jan 6, 2021 at 21:03
  • Before. I deleted the image and re-uploaded it and it looks as it should now. Thanks! – Anthony Commented Jan 7, 2021 at 1:39
  • 1 There's the regenerate thumbnails plugin that can do that for you – Tom J Nowell Commented Jan 7, 2021 at 10:21
Add a comment  | 

1 Answer 1

Reset to default 1

Thanks to Tom's comments I better understand the issue. There are a number of solutions:

  • re-upload the image after applying new media settings
  • Regenerate the thumbnails with the "Regenerate Thumbnails" plugin or with wp-cli's wp media regenerate.
发布评论

评论列表(0)

  1. 暂无评论