Make WordPress Core

Opened 12 years ago

Closed 10 years ago

Last modified 10 years ago

#2997 closed enhancement (wontfix)

Add filter for jpeg thumbnail quality

Reported by: ketsugi Owned by: pishmishy
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: Administration Keywords: thumbnail options admin has-patch needs-testing
Focuses: Cc:


I would like to be able to specify how WordPress creates its thumbnail images. Some options I would like are:

  • The minimum size above which thumbnails should be created
  • The thumbnail image quality (for JPGs)
  • The thumbnail size

This could be placed under Options > Writing.

Attachments (1)

2997.patch (666 bytes) - added by pishmishy 10 years ago.
Adds filter for thumbnail jpeg quality

Download all attachments as: .zip

Change History (9)

#1 @intoxination
12 years ago

+1 on this idea from me. I would also like to see the option to turn off thumbail creation.

#2 @mdawaffe
11 years ago

[4751] makes some of this pluggable.

#3 @Nazgul
11 years ago

  • Milestone set to 2.4 (future)

Maybe we should move wp_create_thumbnail to pluggable.php?

#4 @pishmishy
10 years ago

  • Owner changed from anonymous to pishmishy
  • Status changed from new to assigned

ketsugi. See wp_generate_attachment_metadata() in wp-admin/includes/image.php where wp_create_thumbnail() is used. It appears that the filters wp_thumbnail_creation_size_limit and wp_thumbnail_max_side_length do half of what you need. I'm attaching a patch that adds a filter for the quality.

10 years ago

Adds filter for thumbnail jpeg quality

#5 @pishmishy
10 years ago

  • Keywords has-patch needs-testing added
  • Summary changed from Allow admin to configure thumbnail options to Add filter for jpeg thumbnail quality

#6 @pishmishy
10 years ago

  • Milestone changed from 2.5 to 2.6

Bumping milestone for feature freeze.

#7 @pishmishy
10 years ago

  • Resolution set to wontfix
  • Status changed from assigned to closed
  • Doesn't appear to be much demand for this feature
  • No feedback from the reporter on the proposed fix

Closing as wontfix. Sorry.

#8 @pishmishy
10 years ago

  • Milestone 2.6 deleted
Note: See TracTickets for help on using tickets.