Uploaded image for project: 'MediaWiki tools'
  1. MediaWiki tools
  2. MEDIAWIKI-75

VisualEditor customized image dimensions not being imported correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.10
    • Component/s: Filter
    • Labels:
    • Environment:
      Mediawiki 1.28.2
      PHP 5.5.12
      VisualEditor 0.1.0
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      We have issues with image sizes when importing from Mediawiki that I'm trying to figure out.  The Mediawiki syntax exported is showing 1:1 aspect ratio on images embedded in the page even though they are configured differently in the visual editor / media settings / advanced settings editor.  For example:

      1) Image KMISPic.png file page shows original file size 1,100x636 in Mediawiki

      2) Image is embedded into Mediawiki page and edited using the visual editor to a custom size 538x311

      3) When viewing Mediawiki markup, image is displayed as:  

      [[File:KMISPic.png|right|frameless|538x538px]]

      4) When viewing actual Mediawiki html source the img has style applied with different dimensions:  

      img[Attributes Style]

      { width: 538px; height: 311px; }

      5) After importing into xwiki markup image is displayed with the incorrect 538x538 dimensions instead of  538x311 so image is distorted due to 1:1 display ratio:

      [[[[image:KMISPic.png||alt="frameless" height="538px" title="frameless" width="538px"]]>>attach:KMISPic.png]

       

       

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              reighnman Jared O.
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: