[wp-trac] [WordPress Trac] #45982: PDF thumbnails have a default black background
WordPress Trac
noreply at wordpress.org
Mon Dec 21 09:15:05 UTC 2020
#45982: PDF thumbnails have a default black background
--------------------------+------------------------------
Reporter: nebrekab | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 5.0.3
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by richardshea):
Replying to [comment:17 thatstevensguy]:
> If you just want to dump @jlambe's great solution at the end of your
themes functions.php, you will get errors about the namespace not being at
the start of the file. In this case, the below less elegant version is
working for me.
THANK YOU so much for that solution of yours for simply using the theme
functions.php, thanks to @jlambe and everyone else too. I'd tried some of
those but had errors beyond my capability.
But this solution is ideal and I've got it to work with this plugin:
https://github.com/pedroelsner/force-regenerate-thumbnails (and only that
version, from that source) which would re-generate thumbs for PDF's
automatically for existing uploads (it's not perfect, creates a new
"xxx-1.jpg" subset of images but works in WP media as new ones). All other
Regenerate Thumbnail plugins skip PDFs.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45982#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list