Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG thumbnails not visible in list view in the WP media library #68

Open
kennymacharia opened this issue Apr 26, 2023 · 4 comments
Open

Comments

@kennymacharia
Copy link

A user on the WordPress.Org reported that SVG thumbnails are not visible in the media library in the list view. I was able to reproduce the issue:
List view: https://a.supportally.com/i/ZDc9b2
Grid view: https://a.supportally.com/i/wB1z98

They also mentioned that this issue was happening on PHP 7.4 and reported an upload problem on the same version of PHP but I'm unable to reproduce the upload error on my end.

The list view seems to work as expected when using other plugins such as:
https://wordpress.org/plugins/safe-svg/
https://wordpress.org/plugins/svg-support/
https://wordpress.org/plugins/easy-svg/

Environment:

PHP Version: 8.1.9
File Upload Types: 1.3.0
WP: 6.2

@kkarpieszuk
Copy link
Contributor

kkarpieszuk commented May 10, 2023

@kennymacharia thanks for handling this.

Does it concerns every size of SVG file? Could you share example svg file which does not render preview (and example of one which renders it correctly in case it would happen)

I want to double check: it is not rendered only on list view, but on grid view it is correct, yes?

what mime type has user set in FUT plugin for SVG file?

@kennymacharia
Copy link
Author

Hi @kkarpieszuk

The issue seems to affect all SVGs but here is one example from the customer: https://www.sendspace.com/file/hsfg1o
In order to reproduce the issue, you need to use older PHP versions such as 7.3. I'm using the default SVG MIME type: https://a.supportally.com/i/iaEYck

@kkarpieszuk
Copy link
Contributor

Thanks. what about the view? Is it not displayed only in list view or also on grid view?

@kennymacharia
Copy link
Author

The grid view works but not the list view.
List view: https://a.supportally.com/i/ZDc9b2
Grid view: https://a.supportally.com/i/wB1z98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants