Skip to content

Commit fbc79a3

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

File tree

1 file changed

+13
-13
lines changed
  • app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/variations/steps

1 file changed

+13
-13
lines changed

app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/variations/steps/bulk.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -463,19 +463,19 @@ define([
463463
// initialize Uppy upload
464464
uppy.use(Uppy.Dashboard, options);
465465

466-
// Use 'self.options' to access component options
467-
if (self.options?.isResizeEnabled) {
468-
uppy.use(Uppy.Compressor, {
469-
maxWidth: self.options.maxWidth,
470-
maxHeight: self.options.maxHeight,
471-
quality: 0.92,
472-
beforeDraw() {
473-
if (!allowedResize) {
474-
this.abort();
475-
}
476-
}
477-
});
478-
}
466+
// // Use 'self.options' to access component options
467+
// if (self.options?.isResizeEnabled) {
468+
// uppy.use(Uppy.Compressor, {
469+
// maxWidth: self.options.maxWidth,
470+
// maxHeight: self.options.maxHeight,
471+
// quality: 0.92,
472+
// beforeDraw() {
473+
// if (!allowedResize) {
474+
// this.abort();
475+
// }
476+
// }
477+
// });
478+
// }
479479

480480
// drop area for file upload
481481
uppy.use(Uppy.DropTarget, {

0 commit comments

Comments
 (0)