Image optimization & Lazy Load by Optimole - Version 3.3.4

Version Description

Download this release

Release Info

Developer optimole
Plugin Icon 128x128 Image optimization & Lazy Load by Optimole
Version 3.3.4
Comparing to
See all releases

Code changes from version 3.3.3 to 3.3.4

CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  ##### [Version 3.3.3](https://github.com/Codeinwp/optimole-wp/compare/v3.3.2...v3.3.3) (2022-03-18)
2
 
3
  #### Fixes
1
+ ##### [Version 3.3.4](https://github.com/Codeinwp/optimole-wp/compare/v3.3.3...v3.3.4) (2022-03-25)
2
+
3
+ * Add support for HEIC/AVIF formats as source input
4
+
5
  ##### [Version 3.3.3](https://github.com/Codeinwp/optimole-wp/compare/v3.3.2...v3.3.3) (2022-03-18)
6
 
7
  #### Fixes
inc/config.php CHANGED
@@ -14,13 +14,15 @@ class Optml_Config {
14
  * @var array
15
  */
16
  public static $image_extensions = [
17
- 'jpg' => 'image/jpeg',
18
- 'jpeg' => 'image/jpeg',
19
- 'jpe' => 'image/jpeg',
20
- 'png' => 'image/png',
21
- 'webp' => 'image/webp',
22
- 'svg' => 'image/svg+xml',
23
- 'gif' => 'image/gif',
 
 
24
  ];
25
  /**
26
  * CSS/Js mimetypes.
@@ -40,6 +42,8 @@ class Optml_Config {
40
  'jpg|jpeg|jpe' => 'image/jpeg',
41
  'png' => 'image/png',
42
  'webp' => 'image/webp',
 
 
43
  'svg' => 'image/svg+xml',
44
  'gif' => 'image/gif',
45
  'css' => 'text/css',
14
  * @var array
15
  */
16
  public static $image_extensions = [
17
+ 'jpg' => 'image/jpeg',
18
+ 'jpeg' => 'image/jpeg',
19
+ 'jpe' => 'image/jpeg',
20
+ 'png' => 'image/png',
21
+ 'heic' => 'image/heif',
22
+ 'avif' => 'image/avif',
23
+ 'webp' => 'image/webp',
24
+ 'svg' => 'image/svg+xml',
25
+ 'gif' => 'image/gif',
26
  ];
27
  /**
28
  * CSS/Js mimetypes.
42
  'jpg|jpeg|jpe' => 'image/jpeg',
43
  'png' => 'image/png',
44
  'webp' => 'image/webp',
45
+ 'heic' => 'image/heif',
46
+ 'avif' => 'image/avif',
47
  'svg' => 'image/svg+xml',
48
  'gif' => 'image/gif',
49
  'css' => 'text/css',
optimole-wp.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Image optimization service by Optimole
4
  * Description: Complete handling of your website images.
5
- * Version: 3.3.3
6
  * Author: Optimole
7
  * Author URI: https://optimole.com
8
  * License: GPL-2.0+
@@ -74,7 +74,7 @@ function optml() {
74
  }
75
  define( 'OPTML_URL', plugin_dir_url( __FILE__ ) );
76
  define( 'OPTML_PATH', plugin_dir_path( __FILE__ ) );
77
- define( 'OPTML_VERSION', '3.3.3' );
78
  define( 'OPTML_NAMESPACE', 'optml' );
79
  define( 'OPTML_BASEFILE', __FILE__ );
80
  // Fallback for old PHP versions when this constant is not defined.
2
  /**
3
  * Plugin Name: Image optimization service by Optimole
4
  * Description: Complete handling of your website images.
5
+ * Version: 3.3.4
6
  * Author: Optimole
7
  * Author URI: https://optimole.com
8
  * License: GPL-2.0+
74
  }
75
  define( 'OPTML_URL', plugin_dir_url( __FILE__ ) );
76
  define( 'OPTML_PATH', plugin_dir_path( __FILE__ ) );
77
+ define( 'OPTML_VERSION', '3.3.4' );
78
  define( 'OPTML_NAMESPACE', 'optml' );
79
  define( 'OPTML_BASEFILE', __FILE__ );
80
  // Fallback for old PHP versions when this constant is not defined.
readme.txt CHANGED
@@ -94,9 +94,16 @@ Premium users will be able to optimize images starting with more than 25k monthl
94
 
95
  == Changelog ==
96
 
 
 
 
 
 
 
 
97
  ##### [Version 3.3.3](https://github.com/Codeinwp/optimole-wp/compare/v3.3.2...v3.3.3) (2022-03-18)
98
 
99
- #### Fixes
100
  - adds filter <code>optml_gif_to_video_flags</code> to exclude GIF placeholders from video conversion
101
  - adds compatibility with Avada live to remove replacement in edit mode
102
 
94
 
95
  == Changelog ==
96
 
97
+ ##### [Version 3.3.4](https://github.com/Codeinwp/optimole-wp/compare/v3.3.3...v3.3.4) (2022-03-25)
98
+
99
+ * Add support for HEIC/AVIF formats as source input
100
+
101
+
102
+
103
+
104
  ##### [Version 3.3.3](https://github.com/Codeinwp/optimole-wp/compare/v3.3.2...v3.3.3) (2022-03-18)
105
 
106
+ #### Fixes
107
  - adds filter <code>optml_gif_to_video_flags</code> to exclude GIF placeholders from video conversion
108
  - adds compatibility with Avada live to remove replacement in edit mode
109
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit9243b55a65d9e98acd826d416349052d::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitddd4a04df47eac135ef58942521e1b1b::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit9243b55a65d9e98acd826d416349052d
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit9243b55a65d9e98acd826d416349052d
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit9243b55a65d9e98acd826d416349052d', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit9243b55a65d9e98acd826d416349052d', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit9243b55a65d9e98acd826d416349052d::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,12 +51,12 @@ class ComposerAutoloaderInit9243b55a65d9e98acd826d416349052d
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit9243b55a65d9e98acd826d416349052d::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire9243b55a65d9e98acd826d416349052d($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
@@ -68,7 +68,7 @@ class ComposerAutoloaderInit9243b55a65d9e98acd826d416349052d
68
  * @param string $file
69
  * @return void
70
  */
71
- function composerRequire9243b55a65d9e98acd826d416349052d($fileIdentifier, $file)
72
  {
73
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
74
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitddd4a04df47eac135ef58942521e1b1b
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitddd4a04df47eac135ef58942521e1b1b', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitddd4a04df47eac135ef58942521e1b1b', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitddd4a04df47eac135ef58942521e1b1b::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInitddd4a04df47eac135ef58942521e1b1b::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequireddd4a04df47eac135ef58942521e1b1b($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
68
  * @param string $file
69
  * @return void
70
  */
71
+ function composerRequireddd4a04df47eac135ef58942521e1b1b($fileIdentifier, $file)
72
  {
73
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
74
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit9243b55a65d9e98acd826d416349052d
8
  {
9
  public static $files = array (
10
  '9fef4034ed73e26a337d9856ea126f7f' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
@@ -17,7 +17,7 @@ class ComposerStaticInit9243b55a65d9e98acd826d416349052d
17
  public static function getInitializer(ClassLoader $loader)
18
  {
19
  return \Closure::bind(function () use ($loader) {
20
- $loader->classMap = ComposerStaticInit9243b55a65d9e98acd826d416349052d::$classMap;
21
 
22
  }, null, ClassLoader::class);
23
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitddd4a04df47eac135ef58942521e1b1b
8
  {
9
  public static $files = array (
10
  '9fef4034ed73e26a337d9856ea126f7f' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
17
  public static function getInitializer(ClassLoader $loader)
18
  {
19
  return \Closure::bind(function () use ($loader) {
20
+ $loader->classMap = ComposerStaticInitddd4a04df47eac135ef58942521e1b1b::$classMap;
21
 
22
  }, null, ClassLoader::class);
23
  }