Use square bounding boxes for default-sized thumbnails
authorC. Scott Ananian <cscott@cscott.net>
Tue, 25 Mar 2014 16:48:55 +0000 (12:48 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Wed, 21 May 2014 21:30:06 +0000 (14:30 -0700)
commit7db55341791cb44ca599b84bea707b05de2f227d
treea555b0b6fbf591c6bba7f5120390bf17192d7e0f
parent0a8e5a82107442cb519ee2549df2fc82c14add18
Use square bounding boxes for default-sized thumbnails

Thumbnails for portrait-orientation images have always been "too big",
especially when displayed in a gallery.  The 'upright' option did not
completely fix the issue.  Using a square bounding box for thumbnails
(and 'framed' images) without an explicit size specifiction provides
a better default appearance.

This also provides a clean syntax for content authored using
Parsoid/Visual Editor, which prefers square bounding boxes.

See:
https://www.mediawiki.org/wiki/Requests_for_comment/Square_bounding_boxes

Bug: 63903
Change-Id: I665d8945843d3b5437a74e376b63c44965590116
RELEASE-NOTES-1.24
includes/Linker.php
tests/parser/parserTest.inc
tests/parser/parserTests.txt
tests/phpunit/data/media/Portrait.png [new file with mode: 0644]
tests/phpunit/includes/parser/NewParserTest.php