Skip to content

Quality drops and transparency replaced with solid color when uploading .png with transparent background #10343

@MichaelJamesParsons

Description

@MichaelJamesParsons

Preconditions

  1. Magento 2.1.7
  2. PHP 7.1

Steps to reproduce

  1. Navigate to "add new CMS page" view of the admin panel
  2. Using the WYSIWYG editor, click "insert/edit image"
  3. Click the "browse" button
  4. Upload an image with colored text over a transparent background
  5. Insert the image and save

Expected result

  1. The image should be inserted into the CMS page without any loss in quality, and should keep a transparent background.

Actual result

  1. The image is inserted into the CMS page, but there is a very noticeable loss in quality (the colored portions of the image look rough). All transparent layers are replaced with solid black.
Original Transparent Image

28398027-c9dd62a8-6cca-11e7-8354-6368d691c4a7

Post-Upload Image

28398006-ad37aad2-6cca-11e7-89ff-528df066bb88

Related Issues

#5401
#2312

Attempts to fix

#7307

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions