r99274 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r99273
|
r99274
|
r99275
>
Date:
21:57, 7 October 2011
Author:
brion
Status:
ok
Tags:
Comment:
MFT
r99230
: EXIF rotation fix for files where the thumbnail had different orientation from the main image
ImageMagick's auto rotation was picking the wrong one; using explicit rotation instead.
Modified paths:
/branches/wmf/1.18wmf1/includes/media/Bitmap.php
(modified) (
history
)
Diff
[
purge
]
Index: branches/wmf/1.18wmf1/includes/media/Bitmap.php
—
—
@@ -318,7 +318,8 @@
319
319
( $params['comment'] !== ''
320
320
? " -set comment " . wfEscapeShellArg( $this->escapeMagickProperty( $params['comment'] ) )
321
321
: '' ) .
322
- " -depth 8 $sharpen -auto-orient" .
322
+ " -depth 8 $sharpen " .
323
+ " -rotate -$rotation " .
323
324
" {$animation_post} " .
324
325
wfEscapeShellArg( $this->escapeMagickOutput( $params['dstPath'] ) ) . " 2>&1";
325
326
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r99230
(
bug 31487
) Don't specify -auto-orient, but specify image rotations ourselves
btongminh
18:48, 7 October 2011
Status & tagging log
01:31, 22 October 2011
Reedy
(
talk
|
contribs
)
changed the
status
of r99274
[
removed:
new
added:
ok]