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

Wordpress cutting images size

programmeradmin1浏览0评论

I'm currently working on a page's banner , and after a while i've noticed that my images are with slight worst quality that i expected.

I was uploading the images with the 1920x1024 size, but after i checked admin dashboard i noticed they have been shrunk to 1024x575 ! Is there any reason why this happens ? And is there anyway to prevent this ?

Thanks in advance!

I'm currently working on a page's banner , and after a while i've noticed that my images are with slight worst quality that i expected.

I was uploading the images with the 1920x1024 size, but after i checked admin dashboard i noticed they have been shrunk to 1024x575 ! Is there any reason why this happens ? And is there anyway to prevent this ?

Thanks in advance!

Share Improve this question asked Feb 28, 2020 at 12:37 Pedro FerreiraPedro Ferreira 1791 silver badge10 bronze badges 2
  • 1 Are you using the original image or are you using one of the other image sizes such as large or medium? WP creates multiple copies of the image in various sizes, but it always keeps the original uploaded image file – Tom J Nowell Commented Feb 28, 2020 at 13:59
  • Yes it was that :) found the error just now , thanks ! – Pedro Ferreira Commented Feb 28, 2020 at 14:17
Add a comment  | 

1 Answer 1

Reset to default 1

Maybe the method you're using to display the banner is using a specific image size. Usually wordpress can use a defined (or not) image size to display a media item, but if you check the media item, you'll be able to see the original upload.

Can you provide some code where you're displaying the banner?

You should check out the add_image_size, get_the_post_thumbnail methods and also if you should change the method to display the image.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论