AI Assistant
Notifications
Clear all

New update Compress?

4 Posts
2 Users
0 Reactions
1,847 Views
Posts: 20
 cziv
Customer
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@cziv)
Member
Joined: 6 years ago
[#6864]

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: 6645
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@astgh)
Illustrious Member
Joined: 8 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@cziv)
Member
Joined: 6 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: 8 years ago

Illustrious Member
Posts: 6645
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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