Skip to content

"File" field type and white images with transparent backgrounds #1103

@chrisgherbert

Description

@chrisgherbert

Expected Behavior:

When uploading an image using the "file" field type, it should be visible even if the image is all-white with a transparent background. These kinds are images are very common when dealing with logos or icons.

Actual Behavior:

All-white images are not visible because the preview box has a white background:
screen shot 2018-03-07 at 12 43 35 am

Standard WordPress image UI elements use a checkerboard background or a light gray background:

Featured Image Example

screen shot 2018-03-07 at 12 49 55 am

Media Library Example

screen shot 2018-03-07 at 12 50 25 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions