Version Description
(2019-07-11) = * Update limits of maximum execution time
Download this release
Release Info
Developer | mateuszgbiorczyk |
Plugin | Converter for Media – Optimize images | Convert WebP & AVIF |
Version | 1.0.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.0.4
- app/Convert/Gd.php +1 -0
- app/Convert/Imagick.php +1 -0
- readme.txt +16 -0
- webp-converter-for-media.php +2 -2
app/Convert/Gd.php
CHANGED
@@ -11,6 +11,7 @@
|
|
11 |
public function convertImage($path, $quality)
|
12 |
{
|
13 |
ini_set('memory_limit', '1G');
|
|
|
14 |
|
15 |
try {
|
16 |
if (!is_writable($path)) {
|
11 |
public function convertImage($path, $quality)
|
12 |
{
|
13 |
ini_set('memory_limit', '1G');
|
14 |
+
set_time_limit(120);
|
15 |
|
16 |
try {
|
17 |
if (!is_writable($path)) {
|
app/Convert/Imagick.php
CHANGED
@@ -11,6 +11,7 @@
|
|
11 |
public function convertImage($path, $quality)
|
12 |
{
|
13 |
ini_set('memory_limit', '1G');
|
|
|
14 |
|
15 |
try {
|
16 |
if (!is_writable($path)) {
|
11 |
public function convertImage($path, $quality)
|
12 |
{
|
13 |
ini_set('memory_limit', '1G');
|
14 |
+
set_time_limit(120);
|
15 |
|
16 |
try {
|
17 |
if (!is_writable($path)) {
|
readme.txt
CHANGED
@@ -66,6 +66,19 @@ In the WordPress admin panel, on the `Settings -> WebP Converter` subpage there
|
|
66 |
|
67 |
All WebP images are stored in the `/wp-content/uploads-webpc/` directory. Inside the directory there is the same structure as in the original `uploads` directory. The files have original extensions in the name along with the new `.webp`. In case the location of the original file is as follows: `/wp-content/uploads/2019/06/example.jpg` then its converted version will be in the following location: `/wp-content/uploads-webpc/2019/06/example.jpg.webp`.
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
= Can I enable browser caching for WebP images? =
|
70 |
|
71 |
Yes of course. The plugin allows this by using the module `mod_expires`. Thanks to this, we can even speed up page loading time for returning users because they do not need to re-download files from the server. If you do not want to use this functionality, you can turn it off at any time.
|
@@ -89,6 +102,9 @@ If you are using a CDN server, find one that automatically converts images to We
|
|
89 |
|
90 |
== Changelog ==
|
91 |
|
|
|
|
|
|
|
92 |
= 1.0.3 (2019-06-26) =
|
93 |
* Security changes
|
94 |
|
66 |
|
67 |
All WebP images are stored in the `/wp-content/uploads-webpc/` directory. Inside the directory there is the same structure as in the original `uploads` directory. The files have original extensions in the name along with the new `.webp`. In case the location of the original file is as follows: `/wp-content/uploads/2019/06/example.jpg` then its converted version will be in the following location: `/wp-content/uploads-webpc/2019/06/example.jpg.webp`.
|
68 |
|
69 |
+
= How to check if plugin works? =
|
70 |
+
|
71 |
+
When you have installed plugin and converted all images, follow these steps:
|
72 |
+
|
73 |
+
1. Run `Google Chrome` and enable `Dev Tools` (F12).
|
74 |
+
2. Go to the `Network` tab and select filtering for `Img` *(Images)*.
|
75 |
+
3. Refresh your website page.
|
76 |
+
4. Check list of loaded images. Note `Type` column.
|
77 |
+
5. If value of `webp` is there, then everything works fine.
|
78 |
+
6. Remember that this plugin does not change URLs. This means that e.g. link will have path to .jpg file, but `.jpg.webp file will be loaded instead of original .jpg`.
|
79 |
+
7. In addition, you can check weight of website before and after using plugin. The difference will be huge!
|
80 |
+
8. More information: [here](https://gbiorczyk.pl/webp-converter/check-devtools.png)
|
81 |
+
|
82 |
= Can I enable browser caching for WebP images? =
|
83 |
|
84 |
Yes of course. The plugin allows this by using the module `mod_expires`. Thanks to this, we can even speed up page loading time for returning users because they do not need to re-download files from the server. If you do not want to use this functionality, you can turn it off at any time.
|
102 |
|
103 |
== Changelog ==
|
104 |
|
105 |
+
= 1.0.4 (2019-07-11) =
|
106 |
+
* Update limits of maximum execution time
|
107 |
+
|
108 |
= 1.0.3 (2019-06-26) =
|
109 |
* Security changes
|
110 |
|
webp-converter-for-media.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
/*
|
4 |
Plugin Name: WebP Converter for Media
|
5 |
Description: Speed up your website by serving WebP images instead of standard formats JPEG, PNG and GIF.
|
6 |
-
Version: 1.0.
|
7 |
Author: Mateusz Gbiorczyk
|
8 |
Author URI: https://gbiorczyk.pl/
|
9 |
Text Domain: webp-converter
|
10 |
*/
|
11 |
|
12 |
-
define('WEBPC_VERSION', '1.0.
|
13 |
define('WEBPC_FILE', __FILE__);
|
14 |
define('WEBPC_NAME', plugin_basename(__FILE__));
|
15 |
define('WEBPC_PATH', plugin_dir_path(__FILE__));
|
3 |
/*
|
4 |
Plugin Name: WebP Converter for Media
|
5 |
Description: Speed up your website by serving WebP images instead of standard formats JPEG, PNG and GIF.
|
6 |
+
Version: 1.0.4
|
7 |
Author: Mateusz Gbiorczyk
|
8 |
Author URI: https://gbiorczyk.pl/
|
9 |
Text Domain: webp-converter
|
10 |
*/
|
11 |
|
12 |
+
define('WEBPC_VERSION', '1.0.4');
|
13 |
define('WEBPC_FILE', __FILE__);
|
14 |
define('WEBPC_NAME', plugin_basename(__FILE__));
|
15 |
define('WEBPC_PATH', plugin_dir_path(__FILE__));
|