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

[5.x] Fix CP thumbnail placeholder #11279

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Conversation

duncanmcclean
Copy link
Member

This pull request fixes an issue with the placeholder thumbnail images displayed when an image's dimentions are larger than the configured limits.

The ThumbnailController was redirecting to a file that doesn't exist in the public/vendor/statamic/cp directory.

This file used to exist when we were using Laravel Mix, but when we switched to Vite in 4.0 (), the dist.tar.zip files we ship with Statamic releases stopped including SVGs.

This PR fixes the issue by returning the contents of the SVG directly from our controller, rather than redirecting to another URL.

Fixes #11228.

@jasonvarga jasonvarga merged commit 3e47dd1 into 5.x Dec 18, 2024
20 checks passed
@jasonvarga jasonvarga deleted the fix/cp-thumbnail-placeholder branch December 18, 2024 21:24
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

Successfully merging this pull request may close these issues.

Images too large for thumbnail generation look like failed uploads
2 participants