Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Sep 18, 2023
1 parent 721e9c2 commit a68f9de
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/Varien/Image/Adapter/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ abstract class Varien_Image_Adapter_Abstract
* original image, but after resize() it's already a scaled version.
*
* @see Varien_Image_Adapter_Gd2::open()
* @var resource|GdImage
* @var resource|GdImage|Imagick
*/
protected $_imageHandler = null;

Expand Down
28 changes: 18 additions & 10 deletions lib/Varien/Image/Adapter/Imagick.php
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
{
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit a68f9de

Please sign in to comment.