Converter for Media – Optimize images | Convert WebP & AVIF - Version 4.0.4

Version Description

(2021-12-30) = * [Changed] opcache.revalidate_freq parameter in PHP configuration to avoid problems while updating plugin

Download this release

Release Info

Developer mateuszgbiorczyk
Plugin Icon 128x128 Converter for Media – Optimize images | Convert WebP & AVIF
Version 4.0.4
Comparing to
See all releases

Code changes from version 4.0.3 to 4.0.4

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  == Changelog ==
2
 
 
 
 
3
  = 4.0.3 (2021-12-20) =
4
  * `[Fixed]` Auto-conversion images with unsupported extensions when uploading files
5
  * `[Fixed]` Generating directory paths when ABSPATH constant is invalid
1
  == Changelog ==
2
 
3
+ = 4.0.4 (2021-12-30) =
4
+ * `[Changed]` opcache.revalidate_freq parameter in PHP configuration to avoid problems while updating plugin
5
+
6
  = 4.0.3 (2021-12-20) =
7
  * `[Fixed]` Auto-conversion images with unsupported extensions when uploading files
8
  * `[Fixed]` Generating directory paths when ABSPATH constant is invalid
readme.txt CHANGED
@@ -130,38 +130,7 @@ Also REST API must be enabled and work without additional restrictions. If you h
130
 
131
  = How to check if plugin works? =
132
 
133
- When you have installed plugin and converted all images, follow these steps:
134
-
135
- 1. Run `Google Chrome` and enable `Dev Tools` *(F12)*.
136
- 2. Go to the `Network` tab and select filtering for `Img` *(Images)*.
137
- 3. Refresh your website page.
138
- 4. Check list of loaded images. Note `Type` column.
139
- 5. If value of `webp` is there, then everything works fine.
140
- 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`.
141
- 7. In addition, you can check weight of website before and after using plugin. The difference will be huge!
142
- 8. More information: [here](https://gbiorczyk.pl/webp-converter/check-devtools.png)
143
-
144
- Please remember that in default loading mode *(via .htaccess)* URLs will remain unchanged. When you open the image in a new tab or look at its URL, you'll see the original URL.
145
-
146
- WebP is only used when loading a image on a website. In default loading mode *(via .htaccess)* it is done by the rules from the .htaccess file, on the server side, without the visible URL change to the image. Yes, it can be called magic :)
147
-
148
- That is why the plugin should be tested in Dev Tools. If the Type of file is `WebP`, then everything is working properly. You can also turn off the plugin for a moment and check the weight of your website, then turn it on and test again. The difference should be visible.
149
-
150
- The operation of the plugin for non-advanced users may sometimes be less understood, but everything is fine. Thanks to this, regardless of whether your browser supports WebP or not, everything works without problems.
151
-
152
- Only images from the `/uploads` directory are automatically converted. If you use other plugins that also save images in the `/uploads` directory then this may not work. Therefore, check the plugin settings and try converting all images again.
153
-
154
- = Why are some images not in WebP? =
155
-
156
- If the converted image in WebP format is larger than the original, the browser will use the original file. This converted file will be deleted. Therefore, you can also see files other than WebP on the list. When this happens, you will receive information in debug.log.
157
-
158
- When such a situation occurs, a file in `.webp.deleted` format will be created. This avoids re-converting images that were larger than original after converting to WebP. If the option of forced conversion of all images is checked, this image will also be re-converted.
159
-
160
- If you want to force the use of WebP files, uncheck the `Automatic removal of files in output formats larger than original` option in the plugin settings. Then click on the `Regenerate All` button to convert all images again.
161
-
162
- Remember that this plugin supports images from the `/wp-content` directory, e.g. files downloaded from the Media Library. Redirections will not work if your images are downloaded from another domain, i.e. from an external service.
163
-
164
- When checking the operation of the plugin, e.g. in Dev Tools, pay attention to the path from which the files are downloaded and which directories you have enabled in the settings of plugin.
165
 
166
  = How to change path to uploads? =
167
 
@@ -481,6 +450,9 @@ This is all very important to us and allows us to do even better things for you!
481
 
482
  == Changelog ==
483
 
 
 
 
484
  = 4.0.3 (2021-12-20) =
485
  * `[Fixed]` Auto-conversion images with unsupported extensions when uploading files
486
  * `[Fixed]` Generating directory paths when ABSPATH constant is invalid
130
 
131
  = How to check if plugin works? =
132
 
133
+ You can find more information on how the plugin works in [our manual](https://wordpress.org/support/topic/how-can-i-check-if-the-plugin-is-working-properly/).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
 
135
  = How to change path to uploads? =
136
 
450
 
451
  == Changelog ==
452
 
453
+ = 4.0.4 (2021-12-30) =
454
+ * `[Changed]` opcache.revalidate_freq parameter in PHP configuration to avoid problems while updating plugin
455
+
456
  = 4.0.3 (2021-12-20) =
457
  * `[Fixed]` Auto-conversion images with unsupported extensions when uploading files
458
  * `[Fixed]` Generating directory paths when ABSPATH constant is invalid
templates/components/widgets/regenerate.php CHANGED
@@ -49,8 +49,8 @@
49
  echo wp_kses_post(
50
  sprintf(
51
  /* translators: %1$s: open anchor tag, %2$s: close anchor tag */
52
- __( 'Do you want to know how a plugin works and how to check if it is working properly? Read our %1$splugin FAQ%2$s.', 'webp-converter-for-media' ),
53
- '<a href="https://wordpress.org/plugins/webp-converter-for-media/#faq" target="_blank">',
54
  '</a>'
55
  )
56
  );
49
  echo wp_kses_post(
50
  sprintf(
51
  /* translators: %1$s: open anchor tag, %2$s: close anchor tag */
52
+ __( 'Do you want to know how a plugin works and how to check if it is working properly? Read %1$sour manual%2$s.', 'webp-converter-for-media' ),
53
+ '<a href="https://wordpress.org/support/topic/how-can-i-check-if-the-plugin-is-working-properly/" target="_blank">',
54
  '</a>'
55
  )
56
  );
webp-converter-for-media.php CHANGED
@@ -3,15 +3,18 @@
3
  /**
4
  * Plugin Name: WebP Converter for Media
5
  * Description: Speed up your website by serving WebP and AVIF images instead of standard formats JPEG, PNG and GIF. Reduce image sizes just now!
6
- * Version: 4.0.3
7
  * Author: Mateusz Gbiorczyk
8
  * Author URI: https://mattplugins.com/
9
  * Text Domain: webp-converter-for-media
10
  * Network: true
11
  */
12
 
 
 
 
13
  require_once __DIR__ . '/vendor/autoload.php';
14
 
15
  new WebpConverter\WebpConverter(
16
- new WebpConverter\PluginInfo( __FILE__, '4.0.3' )
17
  );
3
  /**
4
  * Plugin Name: WebP Converter for Media
5
  * Description: Speed up your website by serving WebP and AVIF images instead of standard formats JPEG, PNG and GIF. Reduce image sizes just now!
6
+ * Version: 4.0.4
7
  * Author: Mateusz Gbiorczyk
8
  * Author URI: https://mattplugins.com/
9
  * Text Domain: webp-converter-for-media
10
  * Network: true
11
  */
12
 
13
+ if ( ( ini_get( 'opcache.revalidate_freq' ) ?: 0 ) > 2 ) {
14
+ ini_set( 'opcache.revalidate_freq', '2' );
15
+ }
16
  require_once __DIR__ . '/vendor/autoload.php';
17
 
18
  new WebpConverter\WebpConverter(
19
+ new WebpConverter\PluginInfo( __FILE__, '4.0.4' )
20
  );