﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
17242	Themes: Allow flexible sizes for custom header uploads	lancewillett	ryan	"If a theme allows flexible header images the custom header feature should adjust the crop settings on upload to let the image through.

'''Theme Support'''

{{{add_theme_support( 'flexible_header_image_upload', 1000, 200 );}}} [[BR]] Where 1000 is the maximum width and 200 is the maximum height allowed.

'''Custom Header Code'''

If the theme_support option exists and passes second argument (dimension as an integer), and the uploaded image dimension is higher, crop to size. If the uploaded image dimension is lower, save it with no crop.

If the option is on but dimension value is false or 0, let any size through (no crop at all).

'''Admin UI'''

If a theme supports this, list the maximum dimensions in Appearance > Header. If no maximums are defined, leave it blank."	task (blessed)	closed	normal	3.4	Themes		normal	fixed	has-patch commit	ian@… mv@… lance@… azizur iamtakashi aaroncampbell sabreuse@… fpb_gns jeremy@… chip@… mike@…
