Skip to content

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

Closed

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

Activity

  1. jtsternberg commented on Mar 7, 2018

    @jtsternberg
    Member

    I like it. Added.

  2. added a commit that references this issue on Oct 12, 2026
    5f99a70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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