v1.7-v8x WebP & AVIF - One click image compression

deltas

Well-known member
Master
Diamond
Elite
Joined
Jan 13, 2020
Messages
786
Reaction score
650
Points
93
NullCash
1,389
Hi,

Looking for PS module to convert images to AVIF
Something like:

Anyone? :)
 

vivozivo

Well-known member
Master
Diamond
Elite
Joined
Sep 24, 2019
Messages
1,209
Reaction score
601
Points
113
NullCash
79
I would love to try AVIF compression
 

lllF0Xlll

Member
XNullUser
Joined
Nov 7, 2021
Messages
86
Reaction score
0
Points
6
NullCash
2
Thank you very much! This is very useful module!
 

longerzoom92

Member
XNullUser
Joined
Mar 31, 2023
Messages
76
Reaction score
0
Points
6
Location
Ukraina
NullCash
7
Hi,

Looking for PS module to convert images to AVIF
Something like:

Anyone? :)
Hello. In Prestashop 8.1.1 it is a standard, but for some reason it cannot be enabled. Who knows, tell me, maybe I didn’t understand something
Снимок экрана 2023-10-28 001007.png
 

longerzoom92

Member
XNullUser
Joined
Mar 31, 2023
Messages
76
Reaction score
0
Points
6
Location
Ukraina
NullCash
7
Да, тоже это заметил. Не знаю, почему я не могу его включить
I don’t quite understand why you need this, but if you tell me the reasons for this, I’ll help you figure it out
 

longerzoom92

Member
XNullUser
Joined
Mar 31, 2023
Messages
76
Reaction score
0
Points
6
Location
Ukraina
NullCash
7
avif may be essential for seo, speed, etc
Here are the numbers for global WebP and AVIF support, according to Can I Use:
WebP – Approximately 96.30% of web users use a browser that supports WebP.
AVIF – Approximately 79.81% of web users use a browser that supports AVIF.
There is no point in switching to the AVIF format now, maybe in 5 years, I don’t see the point in it now. Both formats are good. AVIF takes up more disk space, but has HDR support. Do you need it for goods? (I think no)
 

divera

New member
XNullUser
Joined
May 31, 2022
Messages
19
Reaction score
0
Points
1
NullCash
0
Perfect module! Thanks for your help
Post automatically merged:

Now i have done the main think: optimization!
Post automatically merged:

Exactly what i needed. Thanks!!!
 
Last edited:

holms

Active member
Elite
XNullUser
Joined
May 7, 2021
Messages
189
Reaction score
217
Points
43
NullCash
516
but for some reason it cannot be enabled
only one image format to choose from
screen 2023-10-30-001.jpg
or you can fix the code
PHP:
<picture>
<source srcset="images/example.avif" type="image/avif">
<source srcset="images/example.webp" type="image/webp">
<img src="images/example.jpg" alt="description of example image">
</picture>
 

longerzoom92

Member
XNullUser
Joined
Mar 31, 2023
Messages
76
Reaction score
0
Points
6
Location
Ukraina
NullCash
7
only one image format to choose from
View attachment 99949
or you can fix the code
PHP:
<picture>
<source srcset="images/example.avif" type="image/avif">
<source srcset="images/example.webp" type="image/webp">
<img src="images/example.jpg" alt="description of example image">
</picture>
I don't quite understand what you want. Can you describe in more detail what you want to do? The code you sent is written correctly
 

CoolT Toy

Member
XNullUser
Joined
Mar 24, 2020
Messages
180
Reaction score
11
Points
18
NullCash
2
Who knows, tell me, maybe I didn’t understand something
PHP 8.1+ supports generating AVIF images in GD library. On lower versions of PHP, it will be greyed out with an alert to upgrade.

We check by this:

if (function_exists('imagecreatefromavif')) {
// AVIF support available.
}


not PHP version less 8.1 !
 

rsbbikes

Member
XNullUser
Joined
Jan 2, 2024
Messages
50
Reaction score
0
Points
6
Location
brasil
NullCash
15
I'll test it on my version of prestashop, thanks for making it available
 
Top