Skip to content

Commit

Permalink
update to pel 0.9.12
Browse files Browse the repository at this point in the history
  • Loading branch information
nosilver4u committed Mar 27, 2023
1 parent 7c7818b commit ddbf778
Show file tree
Hide file tree
Showing 109 changed files with 4,926 additions and 20,591 deletions.
8 changes: 8 additions & 0 deletions common.php
Original file line number Diff line number Diff line change
Expand Up @@ -7726,8 +7726,10 @@ function ewww_image_optimizer_autorotate( $file ) {
}
$orientation = (int) ewww_image_optimizer_get_orientation( $file, $type );
if ( ! $orientation || 1 === $orientation ) {
ewwwio_debug_message( 'no rotation needed' );
return;
}
ewwwio_debug_message( "current orientation: $orientation" );
if ( ewww_image_optimizer_get_option( 'ewww_image_optimizer_jpg_level' ) < 20 && function_exists( 'ewww_image_optimizer_jpegtran_autorotate' ) ) {
// Read the exif, if it fails, we won't autorotate.
try {
Expand All @@ -7739,6 +7741,9 @@ function ewww_image_optimizer_autorotate( $file ) {
} catch ( PelDataWindowOffsetException $pelerror ) {
ewwwio_debug_message( 'pel exception: ' . $pelerror->getMessage() );
$exif = null;
} catch ( PelException $pelerror ) {
ewwwio_debug_message( 'pel exception: ' . $pelerror->getMessage() );
$exif = null;
} catch ( Exception $pelerror ) {
ewwwio_debug_message( 'pel exception: ' . $pelerror->getMessage() );
$exif = null;
Expand Down Expand Up @@ -8063,6 +8068,9 @@ function ewww_image_optimizer_resize_upload( $file ) {
} catch ( PelDataWindowOffsetException $pelerror ) {
ewwwio_debug_message( 'pel exception: ' . $pelerror->getMessage() );
$old_exif = null;
} catch ( PelException $pelerror ) {
ewwwio_debug_message( 'pel exception: ' . $pelerror->getMessage() );
$old_exif = null;
} catch ( Exception $pelerror ) {
ewwwio_debug_message( 'pel exception: ' . $pelerror->getMessage() );
$old_exif = null;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require": {
"lsolesen/pel": "0.9.9"
"lsolesen/pel": "0.9.12"
}
}
23 changes: 12 additions & 11 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 12 additions & 11 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,30 @@
"packages": [
{
"name": "lsolesen/pel",
"version": "0.9.9",
"version_normalized": "0.9.9.0",
"version": "0.9.12",
"version_normalized": "0.9.12.0",
"source": {
"type": "git",
"url": "https://github.com/pel/pel.git",
"reference": "95dd3c16161c588f0ac66662c1870a073159e5ec"
"reference": "b95fe29cdacf9d36330da277f10910a13648c84c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/pel/pel/zipball/95dd3c16161c588f0ac66662c1870a073159e5ec",
"reference": "95dd3c16161c588f0ac66662c1870a073159e5ec",
"url": "https://api.github.com/repos/pel/pel/zipball/b95fe29cdacf9d36330da277f10910a13648c84c",
"reference": "b95fe29cdacf9d36330da277f10910a13648c84c",
"shasum": ""
},
"require": {
"php": ">=5.4.0"
"php": ">=7.1.0"
},
"require-dev": {
"ext-exif": "*",
"ext-gd": "*",
"phpunit/phpunit": ">=4.8.36 <8",
"satooshi/php-coveralls": "1.0.*",
"squizlabs/php_codesniffer": "^3.0.0"
"php-coveralls/php-coveralls": ">2.4",
"squizlabs/php_codesniffer": ">3.5",
"symfony/phpunit-bridge": "^4 || ^5"
},
"time": "2020-11-07T06:04:18+00:00",
"time": "2022-02-18T13:20:54+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down Expand Up @@ -58,7 +59,7 @@
],
"support": {
"issues": "https://github.com/pel/pel/issues",
"source": "https://github.com/pel/pel/tree/0.9.9"
"source": "https://github.com/pel/pel/tree/0.9.12"
},
"install-path": "../lsolesen/pel"
}
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => 'f137804260e967fc25490ecfb7d5de0f95330ead',
'reference' => '7c7818b3e0ef1be25af8125af68b5570bcbd60d9',
'name' => '__root__',
'dev' => true,
),
Expand All @@ -16,16 +16,16 @@
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => 'f137804260e967fc25490ecfb7d5de0f95330ead',
'reference' => '7c7818b3e0ef1be25af8125af68b5570bcbd60d9',
'dev_requirement' => false,
),
'lsolesen/pel' => array(
'pretty_version' => '0.9.9',
'version' => '0.9.9.0',
'pretty_version' => '0.9.12',
'version' => '0.9.12.0',
'type' => 'library',
'install_path' => __DIR__ . '/../lsolesen/pel',
'aliases' => array(),
'reference' => '95dd3c16161c588f0ac66662c1870a073159e5ec',
'reference' => 'b95fe29cdacf9d36330da277f10910a13648c84c',
'dev_requirement' => false,
),
),
Expand Down
4 changes: 2 additions & 2 deletions vendor/composer/platform_check.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

$issues = array();

if (!(PHP_VERSION_ID >= 50400)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 5.4.0". You are running ' . PHP_VERSION . '.';
if (!(PHP_VERSION_ID >= 70100)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.1.0". You are running ' . PHP_VERSION . '.';
}

if ($issues) {
Expand Down
175 changes: 175 additions & 0 deletions vendor/lsolesen/pel/.buildpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
<?xml version="1.0" encoding="UTF-8"?>
<buildpath>
<buildpathentry kind="src" path="vendor/squizlabs"/>
<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
<buildpathentry kind="src" path="src">
<attributes>
<attribute name="composer" value="source"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="test">
<attributes>
<attribute name="composer" value="source"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/composer">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/guzzlehttp/guzzle/src">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/guzzlehttp/promises/src">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/guzzlehttp/psr7/src">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/php-coveralls/php-coveralls/src">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/psr/container/src">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/psr/http-client/src">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/psr/http-factory/src">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/psr/http-message/src">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/psr/log/Psr/Log">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/ralouphie/getallheaders/src">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/config">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/console">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/deprecation-contracts">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/filesystem">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/phpunit-bridge">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/polyfill-ctype">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/polyfill-intl-grapheme">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry excluding="Resources/stubs/" kind="src" path="vendor/symfony/polyfill-intl-normalizer">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/polyfill-intl-normalizer/Resources/stubs">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/polyfill-mbstring">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry excluding="Resources/stubs/" kind="src" path="vendor/symfony/polyfill-php73">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/polyfill-php73/Resources/stubs">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry excluding="Resources/stubs/" kind="src" path="vendor/symfony/polyfill-php80">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/polyfill-php80/Resources/stubs">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry excluding="Resources/stubs/" kind="src" path="vendor/symfony/polyfill-php81">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/polyfill-php81/Resources/stubs">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/service-contracts">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/stopwatch">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry excluding="Resources/" kind="src" path="vendor/symfony/string">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/string/Resources">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
<buildpathentry kind="src" path="vendor/symfony/yaml">
<attributes>
<attribute name="composer" value="vendor"/>
</attributes>
</buildpathentry>
</buildpath>
Loading

0 comments on commit ddbf778

Please sign in to comment.