https://bugzilla.wikimedia.org/show_bug.cgi?id=24763
Summary: no robust way to thumbnail images by exact height Product: MediaWiki Version: 1.17-svn Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: Normal Component: Images and files AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: m8r-cyc...@mailinator.com CC: gpaum...@wikimedia.org, bryan.tongm...@gmail.com one cannot display on wikipedia a thumbnail of File:George-W-Bush.jpeg at a height of exactly 600px. one can attempt to constrain it by height and no width (enter [[File:George-W-Bush.jpeg|x600px]]). however this produces a 453 × 599 image (!) while the next available size 454 × 601. suppose a user needs to arrange horizontally several photos of arbitrary dimension while keeping their top and bottom edges aligned. in many cases this requires working backwards by coin-shaving the original images in a graphics editor until round( $srcHeight * $dstWidth / $srcWidth ) happens to equal the desired height. for narrower aspect ratios (flag-poles, longcat, yao ming) this issue will be more certain to arise. the most obvious solution is to pass the size parameter directly to image- magick as widthlessly (breadthlessly?) specified, e.g. this serves me well for a local copy of the same photograph; the height is not replaced by a dependent round-trip calculation. ow...@lappy:~$ convert George-W-Bush.jpeg -thumbnail x600 w.jpg ow...@lappy:~$ identify w.jpg w.jpg JPEG 453x600 453x600+0+0 8-bit DirectClass 86.2KiB 0.000u 0:00.000 since mediawiki isn't doing it this way already, i should guess the real issue lies in gracefully adopting a new thumbnail url pattern (one which incorporates the height-dimension in some fashion), or no? -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l