forked from OpenMage/magento-lts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,22 @@ | ||
<?php | ||
/** | ||
* OpenMage | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* https://opensource.org/licenses/osl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @category Varien | ||
* @package Varien_Image | ||
* @copyright Copyright (c) 2023 The OpenMage Contributors (https://www.openmage.org) | ||
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
|
||
class Varien_Image_Adapter_Imagick extends Varien_Image_Adapter_Abstract | ||
{ | ||
|
@@ -98,16 +116,6 @@ public function save($destination = null, $newName = null) | |
} | ||
} | ||
|
||
// if ($this->_fileType == IMAGETYPE_JPEG) { | ||
// $threshold = (int)Mage::getStoreConfig('catalog/product_image/progressive_threshold'); | ||
// if ($threshold && $threshold <= (imagesx($this->_imageHandler) * imagesy($this->_imageHandler) / 1000000)) { | ||
// imageinterlace($this->_imageHandler, 1); | ||
// | ||
// TODO support progressive JPG? Like this? | ||
// $this->_imageHandler->setInterlaceScheme(); | ||
// } | ||
// } | ||
|
||
// set quality param for PNG file type | ||
$quality = $this->quality(); | ||
if ($quality !== null) { | ||
|