[wp-trac] [WordPress Trac] #36412: Custom Logo: Not able to "Skip Cropping" or crop non-square from small images.
WordPress Trac
noreply at wordpress.org
Tue Apr 5 20:42:31 UTC 2016
#36412: Custom Logo: Not able to "Skip Cropping" or crop non-square from small
images.
--------------------------+-------------------------
Reporter: mikeschroder | Owner: obenland
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.5
Component: Customize | Version: trunk
Severity: major | Resolution:
Keywords: needs-patch | Focuses: javascript
--------------------------+-------------------------
Comment (by azaozz):
Replying to [comment:6 iseulde]:
> This seems to be fixable by adding `'flex-width' => true` to the theme.
Right. This is controlled by the theme. As far as I see it works as
intended at the moment. Not sure why the logo is limited to certain height
and when that value is reached the width is "locked" too. If both `flex-
width` and `flex-height` are locked, the crop aspect ratio is also locked
to the ratio of the supplied `height` and `width`.
One way to fix this is to allow arbitrary size logos (may not be a good
idea). Another way is to lock the aspect ratio (for Twenty Fifteen that
would be a square).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36412#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list