Notifications
Clear all

Paid Addons Support Forum Only

Please note, that here we only support Paid Addons issues and questions.

gVectors Support staff works from 6am to 6pm (GMT+0)

All questions related to wpForo and wpDiscuz free plugins should be asked in the corresponding plugin support forum:

 

wpDiscuz Support Forum wpForo Support Forum

New update Compress?

4 Posts
2 Users
0 Likes
369 Views
cziv
Posts: 17
 cziv
Customer
Topic starter
(@costas-zividis)
Member
Joined: 3 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: 5402
Admin
(@astgh)
Illustrious Member
Joined: 5 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
cziv
Posts: 17
 cziv
Customer
Topic starter
(@costas-zividis)
Member
Joined: 3 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: 5 years ago

Illustrious Member
Posts: 5402

@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