[wp-trac] [WordPress Trac] #32403: Provide ability to crop background image

WordPress Trac noreply at wordpress.org
Tue Jan 26 22:39:40 UTC 2016


#32403: Provide ability to crop background image
-------------------------+------------------------------
 Reporter:  johnbillion  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Customize    |     Version:  3.9
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  administration
-------------------------+------------------------------

Comment (by celloexpressions):

 My thoughts on this are as follows:
 - We can add cropping to background images very easily if we want to, with
 `WP_Customize_Cropped_Image_Control`.
 - I'm not sure whether or not this belongs in core. If we add cropping,
 every user will have to at minimum make an extra click to "skip cropping"
 before they can set a background image. Will 80% of users use this
 feature?
 - Background images need some work as a feature. There are too many
 options available, and much depends on things like screen size that users
 may not know to test. Introducing background image cropping without first
 supporting things like the `background-size` property could be confusing,
 as the visual part of an image could differ significantly from the crop.
 But because there are already so many different options here, it may be
 necessary to explore a broader rethinking that moves away from options for
 specific css properties to more generalized formats such as "tiled",
 "full-screen (covered)", "full-screen (contained)", etc.
 - Whether before or after adding cropping, there is an opportunity to add
 a "library" feature for background images that displays several previously
 uploaded images, like headers do. The custom header image code (which does
 not utilize any other core customizer controls) first needs to be
 eliminated and brought into `WP_Customized_Cropped_Image_Control` or a
 more generic subclass of that control that includes "uploaded"
 capabilities.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32403#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list