WordPress.org

Make WordPress Core

Opened 6 weeks ago

Last modified 9 days ago

#48488 new feature request

Easier disabling of PDF thumbnail creation

Reported by: pampfelimetten Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.7
Component: Media Keywords: needs-patch 2nd-opinion
Focuses: Cc:
PR Number:

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)

#1 @desrosj
9 days ago

  • Component changed from General to Media
  • Keywords needs-patch 2nd-opinion added
  • Milestone changed from Awaiting Review to Future Release
  • Summary changed from Filter for disabling PDF thumbnail creation to Easier disabling of PDF thumbnail creation
  • Version changed from 5.2.4 to 4.7

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.

Note: See TracTickets for help on using tickets.