Skip to content

Image Swatch size change not working #6382

Closed
@patruvlad

Description

@patruvlad

Preconditions

  1. Magento CE 2.1.0

Steps to reproduce

  1. Create a product attribute with Catalog Input Type for Store Owner set to "Visual swatch"
  2. Create configurable product with the attribute above set to the configurations
  3. Check the image swatch size in frontend ( Product List )
  4. In "YOUR THEME/etc/view.xml" add changes for the image swatches
<?xml version="1.0"?>
<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
    <media>
        <images module="Magento_Catalog">
            <image id="swatch_image" type="swatch_image">
                <width>90</width>
                <height>30</height>
            </image>
            <image id="swatch_thumb" type="swatch_thumb">
                <width>120</width>
                <height>40</height>
            </image>
            <image id="swatch_image_base" type="swatch_image">
                <width>90</width>
                <height>30</height>
            </image>
            <image id="swatch_thumb_base" type="swatch_thumb">
                <width>120</width>
                <height>40</height>
            </image>
        </images>
    </media>
</view>
  1. Flush Cache & recheck the image swatch size

Expected result

  1. The Image swatch to change size

Actual result

  1. Nothing changed, not the size of the html element or the actual file size

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: FrontendComponent: CatalogFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedProgress: PR CreatedIndicates that Pull Request has been created to fix issueReproduced on 2.2.xThe issue has been reproduced on latest 2.2 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions