Uploaded image for project: 'Jahia Community'
  1. Jahia Community
  2. JAHIA-4654

Big text field: WAI checks: resize the incorrect images automatically

Details

    • Bug
    • Resolution: Done
    • Major
    • xCM 6.0.0
    • xCM 6.0.0
    • None

    Description

      I selected one of my (large) image through the FCK built-in image picker and resized it in FCK to a smaller size. WAI checks are turned on.

      When switching to another field (I was updating an existing container), this suddently redisplay the WAI error but with the image at full max size.

      Only the thumb should be displayed here (or at least a reduced image even if the full image is loaded).

      TestRail: Results

        Attachments

          1. screenshot-1.jpg
            screenshot-1.jpg
            181 kB
          2. screenshot-2.jpg
            screenshot-2.jpg
            178 kB
          3. P&G_8.GIF
            P&G_8.GIF
            39 kB
          4. screenshot-3.jpg
            screenshot-3.jpg
            137 kB
          5. export_ContentContainer_262.zip
            134 kB

          Activity

            [JAHIA-4654] Big text field: WAI checks: resize the incorrect images automatically

            Tested on jahia6 both hotfix (27190) and trunk branches (build 27196)

            aafshar aafshar [X] (Inactive) added a comment - Tested on jahia6 both hotfix (27190) and trunk branches (build 27196)

            Cause: image site detection is not quite consistent

            How to reproduce:
            1) on a "Web templates"-based virtual site, import the attached container (export_ContentContainer_262.zip) into the navigation menu container list
            2) to to the imported page ("BigText test")
            3) open the Update Container Engine for the first paragraph
            4) switch to "Body" field --> large image breaks the engine (screenshot-3.jpg)
            With the fix applied the picture should be as in screenshot-4.jpg

            Resolution:
            1) Improve image size detection:
            a) try height/width attributes of the <img/> element first
            b) try height/width values of the <img/>'s style attribute
            c) surround the image with a div wrapper 100 x 100 px with hidden overflow if the image size cannot be detected
            2) Do not enlarge images to 100 x 100 px if they are smaller

            Commit (Barbarella): 27047,27048
            Commit (Jahia 6.0 EE Hofix): TODO

            shyrkov Sergiy Shyrkov (Inactive) added a comment - Cause: image site detection is not quite consistent How to reproduce: 1) on a "Web templates"-based virtual site, import the attached container (export_ContentContainer_262.zip) into the navigation menu container list 2) to to the imported page ("BigText test") 3) open the Update Container Engine for the first paragraph 4) switch to "Body" field --> large image breaks the engine (screenshot-3.jpg) With the fix applied the picture should be as in screenshot-4.jpg Resolution: 1) Improve image size detection: a) try height/width attributes of the <img/> element first b) try height/width values of the <img/>'s style attribute c) surround the image with a div wrapper 100 x 100 px with hidden overflow if the image size cannot be detected 2) Do not enlarge images to 100 x 100 px if they are smaller Commit (Barbarella): 27047,27048 Commit (Jahia 6.0 EE Hofix): TODO

            Reproduced on the build 26939

            shyrkov Sergiy Shyrkov (Inactive) added a comment - Reproduced on the build 26939
            shyrkov Sergiy Shyrkov (Inactive) added a comment - - edited

            Unfortunately, I have only the possibility to test with IE 6.0SP2, running in a VMWare. And the problem is not present.

            shyrkov Sergiy Shyrkov (Inactive) added a comment - - edited Unfortunately, I have only the possibility to test with IE 6.0SP2, running in a VMWare. And the problem is not present.

            Looks like I was using this file with IE6SP3. Problem occurs with the update engine (not add new) if I remember correctly. No build running any more on my PC. So I let you retry if you want to cross-check

            scroisier Stephane Croisier (Inactive) added a comment - Looks like I was using this file with IE6SP3. Problem occurs with the update engine (not add new) if I remember correctly. No build running any more on my PC. So I let you retry if you want to cross-check

            I cannot reproduce it on the build 26768. The image in the warning is always resized

            shyrkov Sergiy Shyrkov (Inactive) added a comment - I cannot reproduce it on the build 26768. The image in the warning is always resized

            People

              shyrkov Sergiy Shyrkov (Inactive)
              scroisier Stephane Croisier (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases

                    Packages

                      Version Package
                      xCM 6.0.0