On 03/27/2014 08:32 AM, C. Scott Ananian wrote:
Currently mediawiki constrains image size primarily by width, which doesn't work so well for images which are taller than they are wide. There is no way to ask for an image which has a height equal to the "default thumbnail size" (without explicitly specifying a size in px)!
I support moving to square bounding boxes by default in the longer term, but am sceptical about the feasibility of doing this cleanly in the short term. A short-term solution based on adding more parameters that interact in subtle ways with other image parameters has a longer-term cost. We'll need to support those options for a long time, and I'm not sure that this cost is outweighed by the benefits.
For now Parsoid will use the existing upright option with the appropriate scaling factor. The main downside of this is that the image won't adhere to a square bounding box when the image aspect ratio changes. While not optimal, I believe that this case is rare enough that we don't need to rush on this.
Gabriel