https://bugzilla.wikimedia.org/show_bug.cgi?id=46549

       Web browser: ---
            Bug ID: 46549
           Summary: File size shrinks during rotation (action:
                    'imagerotate') // Rotation not lossless?
           Product: MediaWiki
           Version: 1.21-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: API
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

I don't know whether it is really a bug or just some
JPEG-encoding-internal-strangeness

Test at https://commons.wikimedia.org/wiki/File:Bot-Test.jpg

API query at:
https://commons.wikimedia.org/w/api.php?action=query&prop=info|imageinfo&iiprop=size|comment&titles=File:Bot-Test.jpg&iilimit=5

Start size: 324829; then, after first rotation 281901, then 275364, then 270655
and finally after 4 rotations just 268076 Bytes:

  <ii size="268076" width="512" height="512" comment="Bild um 90 Grad im
Uhrzeigersinn gedreht" />
  <ii size="270655" width="512" height="512" comment="Bild um 270 Grad im
Uhrzeigersinn gedreht" />
  <ii size="275364" width="512" height="512" comment="Bild um 270 Grad im
Uhrzeigersinn gedreht" />
  <ii size="281901" width="512" height="512" comment="Bild um 90 Grad im
Uhrzeigersinn gedreht" />
  <ii size="324829" width="512" height="512" comment="Reverted to version as of
18:08, 29 November 2012" />

Expected result: After 360° rotation and if the image is not cropped, the file
size is supposed to be the same.

Why isn't simply the Metadata of the file manipulated (the
EXIF-Orientation-tag). The image-scalers would do the remaining work.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to