steveturner2018
Forum Replies Created
-
Hi Laurent,
Thanks for downloading the plugin. I have tried to break it down into the following conclusions.
If you are seeing the Chrome logo then the plugin has found a webp image in the media folder. The plugin has no database or attribute reliance, this information is checked every time so the images have been generated. If there were any problems (Which I have never experienced) the corrupt / blank image should still be shown in your browser when visiting your site.
This leads me to believe it may be something to do with your server setup. Can you please check the mods-available/mime.conf file to ensure that the following information is present.AddType image/webp .webp
The only other thing I can suggest for now, is do you have any firewall rules set for outgoing file types or a varnish (caching server) in front of your web server? To confirm the images have be converted you can download one and open it directly in Chrome. Please let me know how you get on and I will try and help further.
Regards
Steve Turner.- This reply was modified 7 years, 6 months ago by steveturner2018.
- This reply was modified 7 years, 6 months ago by steveturner2018.
Forum: Plugins
In reply to: [Media Webp] compressionHi kosss1977,
Good question.
At the moment the compression quality is set to the default of 80%. I found this gives the best results. In a future version they will be the ability to change it. But to save confusion and any rubbish images I have stuck to it. If you are confident about changing the value directly please open PLUGINS/mediawebp/classes/class-admin.php. Ln 266 and change it to
imagewebp( self::$_img, $filearray[‘file’] . ‘.webp’, NEW_QUALITY_VALUE );
e.g for 60% quality
imagewebp( self::$_img, $filearray[‘file’] . ‘.webp’, 60 );
Hope that helps 🙂Steve
Forum: Developing with WordPress
In reply to: Couldn’t generate POT fileI was having the same message. In my case I was pointing at my ‘classes’ sub folder within the plugin. Pointing to the root solved it for me.
But reading your problem you seem to be pointing at the right folder. So after a bit of digging about I think it’s one of two things. (I’m sure it’s not the first.)
1, There isn’t a <YOURPLUGIN>.php file in the root of your plugin folder. This shows the same message.
2, Your missing the * Plugin Name: <YOUR_PLUGIN> line in the comments at the top of the <YOURPLUGIN>.php file. Again, shows the same message. Couldn’t generate POT file!
Hope that helps. 🙂Forum: Plugins
In reply to: [Media Webp] Erreur HTTP.Hi joandb,
Thanks for the report. I have fixed the issues you where experiencing and just released an update.The undefined variable will now be ok. This was because I hadn’t declared the variable before use.
The static method calls are now to an instance of the class.
The undeclared function imagewebp() suggests you are running a version of php less that 5.5, or you are missing the GD module but I am sure you would of had more error notices if you where.Please let me know if you are still having problems after installing the update.
🙂Kind regards
Steve.
- This reply was modified 7 years, 7 months ago by steveturner2018.
- This reply was modified 7 years, 7 months ago by steveturner2018.