Answer the question
In order to leave comments, you need to log in
Why does the site give krakozyabry instead of webp via a direct link?
Hello. On the site, the php gd image handler creates a webp.
imageCreateFromJpeg(); (или imageCreateFromPng / imageCreateFromGif в зависимости от исходного файла)
imageWebp();
Answer the question
In order to leave comments, you need to log in
header('Content-Type: image/webp');
stick before the output
PS: GD disgustingly generates WEBP, imagick is better or vips is even better
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question