Revolution: Webp format and MODX is not friend yet.

Created on 9 Feb 2019  路  4Comments  路  Source: modxcms/revolution

Bug report

Summary

As you probably know, the format of webp images is becoming more and more relevant. If you do not know, then here's an article on Wikipedia - https://en.wikipedia.org/wiki/WebP.

In MODX there are several problems that I discovered while trying to work with this format. What I want to tell below.

Step to reproduce & Observed behavior

Problem 1.
Go to the settings and look for the key * upload_images *. The description of the setting tells us that here we can specify the format of images that can be loaded into the _assets/images/_ folder. Specify the format webp and when you try to download the image in this folder, we get an error.

1

Improvement 1.
After our unsuccessful attempt to upload an image, look for the setting with the * upload_files * key and specify the wepb format there. After that, we successfully upload the image. Perhaps it is necessary to register this format by default in future versions?

Problem 2.
As you can see, the preview image in the webp format is not available for us to see. This is sad, because MODX modern CMS!

2

Observed behavior

Problem 1.
if I understood correctly, after specifying the format of the webp, we should easily upload the image to this directory?

Problem 2.
FTW We must see the preview!

Environment

PHP 7.2
MODX 2.7.0

area-core feature

Most helpful comment

It looks like there's a PR adding this to phpthumb as of 4 hours ago.
https://github.com/JamesHeinrich/phpThumb/commit/884abbdb1b045c16b58b9b3f0969d93e043a7b26

All 4 comments

WebP is not supported by one of the major browsers. And if I鈥檓 not mistaken phpthumb doesn鈥檛 support WebP either.

WebP is not supported by one of the major browsers. And if I鈥檓 not mistaken phpthumb doesn鈥檛 support WebP either.

At the moment, phpthumb does not support the format of the webp as this issue says
https://github.com/JamesHeinrich/phpThumb/issues/107.

I added a PR that changes the setting and registers this format in the list of allowed downloads.

It looks like there's a PR adding this to phpthumb as of 4 hours ago.
https://github.com/JamesHeinrich/phpThumb/commit/884abbdb1b045c16b58b9b3f0969d93e043a7b26

MODX and webp are now friends! Thanks a lot to all involved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lemon666 picture lemon666  路  4Comments

Ruslan-Aleev picture Ruslan-Aleev  路  3Comments

sdrenth picture sdrenth  路  3Comments

Ruslan-Aleev picture Ruslan-Aleev  路  3Comments

alexsoin picture alexsoin  路  3Comments