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 Answer
Reset to default 1Maybe 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.
large
ormedium
? 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