Skip to content

Commit e8f157c

Browse files
Chhandak.BaruaChhandak.Barua
authored andcommitted
ACP2E-3504: Product images not resized when added as configurable product
1 parent c4d928f commit e8f157c

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

app/code/Magento/ConfigurableProduct/ViewModel/uploadResizeConfigValue.php renamed to app/code/Magento/ConfigurableProduct/ViewModel/UploadResizeConfigValue.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2025 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -12,8 +12,7 @@
1212
/**
1313
* Get configuration values for frontend image uploader.
1414
*/
15-
class uploadResizeConfigValue implements \Magento\Framework\View\Element\Block\ArgumentInterface
16-
15+
class UploadResizeConfigValue implements \Magento\Framework\View\Element\Block\ArgumentInterface
1716
{
1817
/**
1918
* @var UploadResizeConfigInterface
@@ -58,6 +57,4 @@ public function isResizeEnabled(): bool
5857
{
5958
return $this->uploadResizeConfig->isResizeEnabled();
6059
}
61-
62-
6360
}

app/code/Magento/ConfigurableProduct/view/adminhtml/layout/catalog_product_wizard.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<!--
33
/**
4-
* Copyright 2011 Adobe
4+
* Copyright 2016 Adobe
55
* All Rights Reserved.
66
*/
77
-->

app/code/Magento/ConfigurableProduct/view/adminhtml/templates/catalog/product/edit/attribute/steps/bulk.phtml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2015 Adobe
4+
* All Rights Reserved.
55
*/
66

77
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
@@ -771,7 +771,8 @@ $uploadUrl = $block->getUrl('catalog/product_gallery/upload');
771771
"component": "Magento_ConfigurableProduct/js/variations/steps/bulk",
772772
"appendTo": "<?= /* @noEscape */ $block->getParentComponentName() ?>",
773773
"noImage": "<?= /* @noEscape */ $block->getNoImageUrl() ?>",
774-
"variationsComponent": "<?= /* @noEscape */ $block->getData('config/form')?>.configurableVariations",
774+
"variationsComponent": "<?= /* @noEscape */ $block->getData('config/form')
775+
?>.configurableVariations",
775776
"isResizeEnabled": <?= /* @noEscape */ $viewModel->isResizeEnabled() ?>,
776777
"maxWidth": <?= /* @noEscape */ $viewModel->getMaxWidth() ?>,
777778
"maxHeight": <?= /* @noEscape */ $viewModel->getMaxHeight() ?>

0 commit comments

Comments
 (0)