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

Version Description

(2019-09-16) = * Adding information on available FAQ

Download this release

Release Info

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

Code changes from version 1.0.4 to 1.0.5

readme.txt CHANGED
@@ -54,6 +54,8 @@ Practically every hosting meets these requirements. You must use PHP at least 5.
54
 
55
  These are native PHP extensions, used among others by WordPress to generate thumbnails. Your server must also have the modules `mod_mime`, `mod_rewrite` and `mod_expires` enabled.
56
 
 
 
57
  = Are there any settings? =
58
 
59
  Yes, at any time you can determine which image formats you want to support. Currently JPEG, PNG and GIF are available. In addition, you have an option to change the compression level, which can be set from 75% to 100%. The default value is 85% and in most cases it is the most optimal value.
@@ -66,6 +68,10 @@ 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
  = How to check if plugin works? =
70
 
71
  When you have installed plugin and converted all images, follow these steps:
@@ -102,6 +108,9 @@ If you are using a CDN server, find one that automatically converts images to We
102
 
103
  == Changelog ==
104
 
 
 
 
105
  = 1.0.4 (2019-07-11) =
106
  * Update limits of maximum execution time
107
 
54
 
55
  These are native PHP extensions, used among others by WordPress to generate thumbnails. Your server must also have the modules `mod_mime`, `mod_rewrite` and `mod_expires` enabled.
56
 
57
+ Also REST API must be enabled and work without additional restrictions.
58
+
59
  = Are there any settings? =
60
 
61
  Yes, at any time you can determine which image formats you want to support. Currently JPEG, PNG and GIF are available. In addition, you have an option to change the compression level, which can be set from 75% to 100%. The default value is 85% and in most cases it is the most optimal value.
68
 
69
  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`.
70
 
71
+ = REST API error =
72
+
73
+ While trying to convert images, you get an error `An error occurred while connecting to REST API. Please try again.`? This means that you have blocked the REST API in your WordPress. By default it is enabled, so it has been blocked by some plugin or your server. The REST API is required for the proper functioning of this plugin.
74
+
75
  = How to check if plugin works? =
76
 
77
  When you have installed plugin and converted all images, follow these steps:
108
 
109
  == Changelog ==
110
 
111
+ = 1.0.5 (2019-09-16) =
112
+ * Adding information on available FAQ
113
+
114
  = 1.0.4 (2019-07-11) =
115
  * Update limits of maximum execution time
116
 
resources/components/notices/thanks.php CHANGED
@@ -4,7 +4,11 @@
4
  <?= __('Thank you for using our plugin WebP Converter for Media!', 'webp-converter'); ?>
5
  </h4>
6
  <p>
7
- <?= __('Please let us know what you think about our plugin. It is important that we can develop this tool. Thank you for all the ratings, reviews and donates. If you have a technical problem, please contact us first before adding the rating. We will try to help you!', 'webp-converter'); ?>
 
 
 
 
8
  </p>
9
  <div class="webpContent__buttons">
10
  <a href="https://wordpress.org/support/plugin/webp-converter-for-media/#new-post" target="_blank"
4
  <?= __('Thank you for using our plugin WebP Converter for Media!', 'webp-converter'); ?>
5
  </h4>
6
  <p>
7
+ <?= sprintf(
8
+ __('Please let us know what you think about our plugin. It is important that we can develop this tool. Thank you for all the ratings, reviews and donates. If you have a technical problem, please before you add a review %scheck our FAQ%s or contact us if you did not find help there. We will try to help you!', 'webp-converter'),
9
+ '<a href="https://wordpress.org/plugins/webp-converter-for-media/#faq" target="_blank">',
10
+ '</a>'
11
+ ); ?>
12
  </p>
13
  <div class="webpContent__buttons">
14
  <a href="https://wordpress.org/support/plugin/webp-converter-for-media/#new-post" target="_blank"
resources/components/widgets/options.php CHANGED
@@ -13,5 +13,16 @@
13
  <button type="submit" name="webpc_save"
14
  class="webpButton webpButton--green"><?= __('Save Changes', 'webp-converter'); ?></button>
15
  </div>
 
 
 
 
 
 
 
 
 
 
 
16
  </div>
17
  </div>
13
  <button type="submit" name="webpc_save"
14
  class="webpButton webpButton--green"><?= __('Save Changes', 'webp-converter'); ?></button>
15
  </div>
16
+ <div class="webpPage__widgetRow">
17
+ <p>
18
+ <?= sprintf(
19
+ __('If you have a problem %scheck our FAQ%s first. If you did not find help there, please %scheck support forum%s for any similar problem or contact us.', 'webp-converter'),
20
+ '<a href="https://wordpress.org/plugins/webp-converter-for-media/#faq" target="_blank">',
21
+ '</a>',
22
+ '<a href="https://wordpress.org/support/plugin/webp-converter-for-media/" target="_blank">',
23
+ '</a>'
24
+ ); ?>
25
+ </p>
26
+ </div>
27
  </div>
28
  </div>
resources/components/widgets/support.php CHANGED
@@ -11,13 +11,17 @@
11
  </p>
12
  <p>
13
  <?= sprintf(
14
- __('Please remember to attach %sserver configuration%s in your message, e.g. as a screenshot.', 'webp-converter'),
 
 
 
 
15
  '<a href="' . $infoUrl . '">',
16
  '</a>'
17
  ); ?>
18
  </p>
19
  <p>
20
- <a href="https://wordpress.org/support/plugin/webp-converter-for-media/#new-post" target="_blank" class="webpButton webpButton--blue">
21
  <?= __('Get help', 'webp-converter'); ?>
22
  </a>
23
  </p>
11
  </p>
12
  <p>
13
  <?= sprintf(
14
+ __('Please %scheck our FAQ%s before adding a thread with technical problem. If you do not find help there, %scheck support forum%s for similar problems. Please remember to attach %sserver configuration%s in your message, e.g. as a screenshot.', 'webp-converter'),
15
+ '<a href="https://wordpress.org/plugins/webp-converter-for-media/#faq" target="_blank">',
16
+ '</a>',
17
+ '<a href="https://wordpress.org/support/plugin/webp-converter-for-media/" target="_blank">',
18
+ '</a>',
19
  '<a href="' . $infoUrl . '">',
20
  '</a>'
21
  ); ?>
22
  </p>
23
  <p>
24
+ <a href="https://wordpress.org/support/plugin/webp-converter-for-media/" target="_blank" class="webpButton webpButton--blue">
25
  <?= __('Get help', 'webp-converter'); ?>
26
  </a>
27
  </p>
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.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__));
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.5
7
  Author: Mateusz Gbiorczyk
8
  Author URI: https://gbiorczyk.pl/
9
  Text Domain: webp-converter
10
  */
11
 
12
+ define('WEBPC_VERSION', '1.0.5');
13
  define('WEBPC_FILE', __FILE__);
14
  define('WEBPC_NAME', plugin_basename(__FILE__));
15
  define('WEBPC_PATH', plugin_dir_path(__FILE__));