WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 6 years ago

Last modified 6 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:

Description

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 6 years ago.
Adds filter for thumbnail jpeg quality

Download all attachments as: .zip

Change History (9)

comment:1 intoxination8 years ago

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

comment:2 mdawaffe7 years ago

[4751] makes some of this pluggable.

comment:3 Nazgul7 years ago

  • Milestone set to 2.4 (future)

Maybe we should move wp_create_thumbnail to pluggable.php?

comment:4 pishmishy6 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.

pishmishy6 years ago

Adds filter for thumbnail jpeg quality

comment:5 pishmishy6 years ago

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

comment:6 pishmishy6 years ago

  • Milestone changed from 2.5 to 2.6

Bumping milestone for feature freeze.

comment:7 pishmishy6 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.

comment:8 pishmishy6 years ago

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