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

thumbnails - Stop WordPress compressing images? – Quality is terrible

programmeradmin0浏览0评论

I understand WordPress creates smaller versions of the original image file.

These versions are blurry in comparison to the original which is a big issue as a photographer.

I set up this page you can see the difference /

How can I stop WordPress compressing the images?

I tried adding the below to the functions.php file and regenerating the thumbnails but no luck.

add_filter('jpeg_quality', function($arg){return 100;});

Thanks, Jamie

I understand WordPress creates smaller versions of the original image file.

These versions are blurry in comparison to the original which is a big issue as a photographer.

I set up this page you can see the difference https://www.jamieknop/test/

How can I stop WordPress compressing the images?

I tried adding the below to the functions.php file and regenerating the thumbnails but no luck.

add_filter('jpeg_quality', function($arg){return 100;});

Thanks, Jamie

Share Improve this question asked Sep 23, 2019 at 15:34 joker91joker91 1
Add a comment  | 

2 Answers 2

Reset to default 1

You can set the width of each image sizes inside of WP > Settings > Media

Alternatively you can select the image size to be "Full image" when inserting each image into the post. This will choose the image you uploaded and not a cropped version.

I was able to resolve this using a plugin called WP Retina 2x https://en-gb.wordpress/plugins/wp-retina-2x/ :)

发布评论

评论列表(0)

  1. 暂无评论