Comments (7)
My hosting provider is KEI. For now, I'm staying on the older version >> phpWCMS 1.9.35 <<. phpWCMS 1.10.2 on KEI.pl servers , I don't succeed (I'm waiting for more stable Kei.pl software). Home.pl teลผ poop. Best regards from the south
from phpwcms.
I have searched a bit more and found a solution here (I hope). This works now for animated WebP too โ just resizing is forbidden in combination with GD. An animated WebP example can be found here.
from phpwcms.
Thanks for explanation.
I switched to the webp format a year ago. Tests showed no problems. Frontend and backend works properly.
The webp format makes it easier to achieve better Core Web Vitals results. I will not go back to the jpg format.
Your fix works very well. Thank you very much. ๐
from phpwcms.
I checked clean installs of 1.9.35/6/7/8. This error does not occur until 1.9.36. This error has been present since 1.9.37. Test environment: php 8.2.12 (XAMPP)
from phpwcms.
Testing environment: php 8.2.12 (XAMPP) , O.K Let's wait for the knowledge to be supplemented. Regards
from phpwcms.
In the file "helper.image.php" (phpWCMS 1.9.37) I found the following code:
// Animated WebP isn't supported yet, needs to be detected and rejected
$webp_type = file_get_contents($path, false, null, 12, 4);
if ($webp_type && strtoupper($webp_type) === 'VP8X') {
$this->set_error('imglib_webp_animated_not_supported');
return false;
}
I removed this code and my problem disappeared. My .webp files are not animated. Perhaps Photoshop, when exporting the image to the .webp format, consists of several layers, added information or the extended version VP8X.
from phpwcms.
WebP support of the GD lib is still not perfect โ the problem might be resizing, I haven't tested it yet finally. I cannot recommend using WebP as default image format in the backend because of the possible lack of support in older browsers. And whenever possible switch to ImageMagick or GraphicMagic from GD. I will implement another setting which will override the VP8X check.
from phpwcms.
Related Issues (20)
- Fehlermeldung mod_fcgid: stderr ... content.func.inc.php on line 454 (v1.9-php8.2-dev) HOT 6
- Fatal Error Shop Modul HOT 4
- Warnings CP Suche HOT 4
- Warnings bei Artikelpaginierung HOT 1
- Meldung Deprecated bei Vewendung des Kalendermoduls (phpwcms 1.10.1-dev)
- Parse error bei Datei Mehrfachupload HOT 4
- Mehrere Meldungen beim Erstellen eines CP Bilder div
- Artikellzentrale, Meldungen nach anlegen neuer Artikel HOT 1
- Artiklel-/Contentpart-datum nach update HOT 1
- Artikelbasis Bild Artikeldetail fรผhrt zu Fatal Error HOT 4
- Deprecated Meldung 1.10.1-dev
- Fatal error bei Installation phpwcms 1.10. HOT 2
- Warning und Fatal Error nach Installation HOT 2
- Webp support HOT 3
- Missing translations (PL) HOT 10
- Image Gallery HOT 8
- Update auf 1.10.2 HOT 2
- Mail function could not be initialized. (php-Version 8.3) HOT 2
- MySQL error: The maximum column size is 767 bytes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpwcms.