Make WordPress Core

Opened 3 years ago

Last modified 21 months ago

#54202 new defect (bug)

Bad display of images with transparent background.

Reported by: michalrama's profile michalrama Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 5.8.1
Component: Media Keywords: reporter-feedback
Focuses: Cc:

Description

Hello,

The file system incorrectly displays images with a transparent background.

Please repair.

Thank you

Attachments (6)

obr�zek212.png (170.6 KB) - added by michalrama 3 years ago.
obr�zek56.png (145.2 KB) - added by michalrama 3 years ago.
obr�zek28.png (463.5 KB) - added by michalrama 3 years ago.
obr�zek53.png (128.3 KB) - added by michalrama 3 years ago.
obr�zek214.png (190.0 KB) - added by michalrama 3 years ago.
obr�zek22.png (75.2 KB) - added by michalrama 3 years ago.

Download all attachments as: .zip

Change History (12)

#1 follow-up: @karpstrucking
3 years ago

  • Keywords reporter-feedback added; needs-patch removed
  • Severity changed from major to minor

hi @michalrama, thank you for submitting this ticket!

can you please provide some additional details about the issue you've encountered and some context for the images you've uploaded?

#2 in reply to: ↑ 1 @michalrama
3 years ago

Replying to karpstrucking:

hi @michalrama, thank you for submitting this ticket!

can you please provide some additional details about the issue you've encountered and some context for the images you've uploaded?

Hi @karpstrucking

I'm sorry, I wrote it hastily.

Image 1. and 2. are the original images with a white background (only differs in resolution)

I wanted to set both of them a transparent background. I did this using IrfanView. However, I had to change the type to gif (originally it is jpg).

It works, and when you click on the image, you can see that the transparent background is displayed correctly. (3. and 4.)

The 5. image was created when I wanted to set the 4. image as a favicon using a theme. (I have no idea why create a separate file with a black background)

However, as you may notice in the first image, the file manager cannot display a thumbnail image with a transparent background.

In addition, the images are not incorrectly numbered. I numbered them exactly as they appear when clicked, so the thumbnail is also misassigned.

I hope I have explained it clearly.

#3 @costdev
21 months ago

  • Component changed from Filesystem API to Media

Hi @michalrama, thanks for opening this ticket and welcome back to Trac!

This appears to be related to the Media component, so I'll switch the Component property so that this gets attention from the right place. 🙂

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


21 months ago

#5 @antpb
21 months ago

hi @michalrama ! Is it possible to share with us the source images you are having this issue with and also some more information about the environment you are seeing this in? The big thing that would be helpful is knowing if your environment uses ImageMagick or GD. If you have access to the server you can run something like php -i | grep 'GD\|ImageMagick' to know which one your server uses.

It seems to me that you are using a gif with a transparent background and I currently see that working in my local environment using ImageMagick.

If you could provide us with the environment info and the source images that you are seeing this issue with, we can debug further. Thanks!

#6 @antpb
21 months ago

Also @michalrama you can go to the Site Health page of your site and click on the media tab on that page: /wp-admin/site-health.php?tab=debug

if you could share that info alongside the source problem images, we can debug further. Thanks!

Note: See TracTickets for help on using tickets.