Opened 5 years ago
Last modified 5 years ago
#48488 new feature request
Easier disabling of PDF thumbnail creation
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | Media | Keywords: | needs-patch 2nd-opinion |
Focuses: | Cc: |
Description
Since #31050 wordpress automatically creates thumbnails for uploaded PDF Files by creating a second attachment post object with the extracted image.
While this may be useful for many use cases, in some like ours it is not.
Furthermore, it is possible to turn of thumbnail creation for audio and video by using the following simple code (
<?php remove_post_type_support( 'attachment:audio', 'thumbnail' ); remove_post_type_support( 'attachment:video', 'thumbnail' );
).
It would be great to have a similar concept for pdf thumbnails in wp-admin/includes/image.php
Change History (1)
Note: See
TracTickets for help on using
tickets.
Thanks for this suggestion, @pampfelimetten!
I think this seems like a reasonable request. On first glance, it seems this could be accomplished with minimal effort, but more testing needs to be done to be sure.
To move forward, this would need a patch. I am also marking for a second opinion, in case there are any intricacies I am not seeing.