Specify default values via Configuration
You have been asking for votes as to which behaviour should be used by default, e.g. upscaling of images.
Why not make such things configurable via the Application's Configuration File?
Will be available in V3.1 with the DefaultSettings plugin. defaultsettings.explicitSizeScaleMode and defaultsettings.maxSizeScaleMode allow you to even set different defaults based on whether width/height or maxwidth/maxheight are used.
-
I've been considering that, but I still wanted to understand what users' expectations are. Previously (based on support e-mails), it seemed that 95% of users expected &scale=both to be the default. Right now, 57% seem to prefer it the way it is, while the remainder are split between the other 2 options.
Offering a configuration setting does have some disadvantages - it would only work properly ASP.NET users, and it could create confusion for developers who work on multiple sites, or on both ASP.NET and ASP/COM/WinForms/WPF.
Considering it's the only resizing-behavior setting that would be configured in Web.config, I'd like to make sure there's a solid benefit before adding something that may simply seed confusion. Right now, it's possible to know what is going to happen by just looking at the querystring. Moving part of that into the configuration seems like it could slow developers down (for reading); although it would decrease the number of querystring commands used, it would add ambiguity that would make the developer have to check web.config.
Do you think it would be better to simply offer a shortened version of &scale=both, like &s=b?