Skip to content

Commit 2eb844f

Browse files
author
Oleksandr Iegorov
committed
MAGETWO-95299: Ability to upload PDP images without compression and downsizing
1 parent 6619884 commit 2eb844f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/Catalog/Model/Product/Image.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Image extends \Magento\Framework\Model\AbstractModel
4545
* Default quality value (for JPEG images only).
4646
*
4747
* @var int
48-
* @deprecated
48+
* @deprecated use config setting with path self::XML_PATH_JPEG_QUALITY
4949
*/
5050
protected $_quality = null;
5151

@@ -220,7 +220,7 @@ class Image extends \Magento\Framework\Model\AbstractModel
220220
* @param SerializerInterface $serializer
221221
* @param ParamsBuilder $paramsBuilder
222222
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
223-
* @SuppressWarnings(PHPMD.UnusedLocalVariable)1
223+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
224224
*/
225225
public function __construct(
226226
\Magento\Framework\Model\Context $context,
@@ -305,7 +305,7 @@ public function getHeight()
305305
*
306306
* @param int $quality
307307
* @return $this
308-
* @deprecated
308+
* @deprecated use config setting with path self::XML_PATH_JPEG_QUALITY
309309
*/
310310
public function setQuality($quality)
311311
{

app/code/Magento/Cms/view/adminhtml/templates/browser/content/uploader.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ foreach ($filters as $media_type) {
1717
}, $media_type['files']));
1818
}
1919

20-
$resizeConfig = ($block->getImageUploadConfigData()->getIsResizeEnabled())
20+
$resizeConfig = $block->getImageUploadConfigData()->getIsResizeEnabled()
2121
? "{action: 'resize', maxWidth: "
2222
. $block->getImageUploadMaxWidth()
2323
. ", maxHeight: "

0 commit comments

Comments
 (0)