Notifications
Clear all

New update Compress?

4 Posts
2 Users
0 Reactions
1,045 Views
Posts: 20
 cziv
Customer
Topic starter
(@cziv)
Member
Joined: 5 years ago

Hello.

Can you pls explain what "compress" images means in this today's update?

Compress for what? Quality, size? And what kind/level?

Thanks

3 Replies
Astghik
Posts: 6193
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

Hi @costas-zividis,

We've found the most optimal way to compress the images. This will allow reducing the disk space much time (about 9 times).  The max height is FullHD (max-height 1800), JPEG quality is 70. This is the most common quality for the web. 

Reply
Posts: 20
 cziv
Customer
Topic starter
(@cziv)
Member
Joined: 5 years ago

Hi,

yes i have seen that in the php code, 70 for images and 50 for thumbs. Still 70 is not what you should default, even Wordpress script defaults to 82.

70 is not that good for photos. And the difference in size between 70 and 82 is so small in kbytes. Or just make that configurable.

Thanks

Reply
1 Reply
Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6193

@costas-zividis,

You can change it using the hook provided below: 

add_filter('wpforoattach_uploader_class_options', function($options){
$options['image_versions']['']['jpeg_quality'] = 80;
return $options;
});

More information on how to add insert custom code.

Reply
Share:
Scroll to top