Make WordPress Core

Opened 21 months ago

Last modified 12 months ago

#21294 new enhancement

Introduce zoom-crop in Media image handling

Reported by: TwoThirdsWater Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:


Please could the wordpress image handling introduce support for a zoom crop of images smaller than specified file sizes.

Change History (9)

comment:1 TwoThirdsWater21 months ago

  • Component changed from General to Media

comment:2 cramdesign21 months ago

  • Cc matt@… added

comment:3 markoheijnen12 months ago

  • Keywords close reporter-feedback added

What is the question here? What kind of changed do you need?

comment:4 TwoThirdsWater12 months ago

If you upload a small image, then request a larger file format (as specified using add_image_size) Wordpress will return a larger image, but not cropped to the ratio specified in add_image_size. As I understand it wordpress does not currently support 'zoom and crop'. This would be a useful function as the current set up can break layouts by returning incorrectly shaped images.

comment:5 markoheijnen12 months ago

  • Keywords close reporter-feedback removed

Ah that way. WordPress doesn't do upscaling. In this case I'm not sure what the right solution would be.

#23713 is related

comment:6 TwoThirdsWater12 months ago

At the risk of stating the obvious, a solution would be to enable Wordpress to upscale, or at least add it as a configurable option. Whilst I understand all the arguments about loss of quality, this would be a valuable addition to the image handling set up (and not a hard one to achieve).

comment:8 TwoThirdsWater12 months ago

Good to know. Many thanks!

Note: See TracTickets for help on using tickets.