与原始图片相比,精选图片较小且质量较低 [英] Featured image is small and low-quality compared to original image
本文介绍了与原始图片相比,精选图片较小且质量较低的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在Wordpress中上载精选图片时,它会减小图片的大小.图像的质量也远低于原始图像.如何使Wordpress具有更大,更高质量的特色图像?
When I upload a featured image in Wordpress, it decreases the size of image. The quality of images is also much lower than original images. How can I get Wordpress to have larger, higher-quality featured images?
推荐答案
在这里,您可以在数组的 get_the_post_thumbnail()
函数的参数中给出缩略图的大小,如下所示:
Here You can give the size of thumbnails in parameter of get_the_post_thumbnail()
function in array like this:
echo get_the_post_thumbnail($id, array(100,100) );
这篇关于与原始图片相比,精选图片较小且质量较低的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文