Make WordPress Core

Opened 12 years ago

Closed 10 years ago

#21294 closed enhancement (duplicate)

Upsize an image for crops larger than itself

Reported by: twothirdswater's profile TwoThirdsWater Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:

Description

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

Change History (12)

#1 @TwoThirdsWater
12 years ago

  • Component changed from General to Media

#2 @cramdesign
12 years ago

  • Cc matt@… added

#3 @markoheijnen
12 years ago

  • Keywords close reporter-feedback added

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

#4 follow-up: @TwoThirdsWater
12 years 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.

#5 @markoheijnen
12 years 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

#6 @TwoThirdsWater
12 years 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).

#8 @TwoThirdsWater
12 years ago

Good to know. Many thanks!

#10 @SergeyBiryukov
10 years ago

Related: #26381, #27910.

Last edited 10 years ago by SergeyBiryukov (previous) (diff)

#11 in reply to: ↑ 4 @ericlewis
10 years ago

  • Summary changed from Introduce zoom-crop in Media image handling to Upsize an image for crops larger than itself

I support the idea of upscaling images so that an attachment never has a "non-existing" image size. This can break functionality in unexpected ways, and your typical user will not understand why a header image doesn't show up even though they uploaded one in their theme options page.

Last edited 10 years ago by ericlewis (previous) (diff)

#12 @wonderboymusic
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #19872.

Note: See TracTickets for help on using tickets.