Opened 3 years ago

Last modified 13 days ago

#11895 new feature request

Allow more specific image size editing

Reported by: frankgroeneveld Owned by:
Priority: normal Milestone: Future Release
Component: Media Version:
Severity: normal Keywords: has-patch ui-feedback
Cc: frankgroeneveld@…, dromsey@…, gvenk, robert@…

Description

Instead of allowing only some combinations of 'thumbnail', 'medium', 'large', 'full' I would like to have the ability to select which of these I would like to crop. So for example, only 'thumbnail' and 'medium'. With the current trunk this is not possible. I created a patch that adds this ability by changing the radio boxes of "apply changes to" in the image-edit page to checkboxes for each of the 4 possible sizes.

Attachments (2)

image-edit.patch (4.5 KB) - added by frankgroeneveld 3 years ago.
Screenshot.png (67.6 KB) - added by frankgroeneveld 3 years ago.

Download all attachments as: .zip

Change History (18)

  • Cc frankgroeneveld@… added

Note that I modified the image-edit.dev.js, so in order to test this you should regenerate the compressed version (image-edit.js) or symlink to the .dev.js version.

  • Keywords image resize editor size thumbnail large medium full removed
  • Milestone set to 3.1

Use of the .dev.js scripts can be enabled by adding define('SCRIPT_DEBUG', true); to wp-config.php.

Media features are being held until 3.1, when the media UI is likely to be overhauled. For what it's worth now just to keep in mind, the patch only accounts for thumbnail/medium/large, but there is an API to specify other sizes as well.

I didn't even know you could specify more sizes, probably because there is not interface for that. This patch does what I need, so I keep using it until the media overhaul.

Thanks.

dup of #8599, no?

@Denis-de-Bernardy No, that bug adds possible extra sizes, while this patch allows you to have better control over which sizes the "edit image" -> "crop" feature applies to. See screenshot below, my patch replaces the original radioboxes in the right bottom with the checkboxes for all 4 default sizes.

  • Keywords has-patch added
  • Milestone changed from Awaiting Triage to 3.1

I like this. Late for 3.1 though.

  • Milestone changed from 3.1 to Future Release
  • Cc dromsey@… added

This patch still works (altough the javascript offset has moved a little bit).

  • Keywords ui-feedback added
  • Cc gvenk added
  • Cc robert@… added

Is this still being considered for a future release? There seems to be a working patch sitting here since 3 years.

Hopefully in version 3.7 but the patch does work but forget custom image sizes. Also the whole editing experience need to change to make it better.

Note: See TracTickets for help on using tickets.