UGENE
  1. UGENE
  2. UGENE-4299

Failed to export an image of the "Chikungunya E1" alignment

    Details

    • Story Points:
      13
    • Tests Type:
      GUI automatic
    • Sprint:
      DEV-27/05/2015
    • User Requests Number:
      1
    • Affect Type:
      Userdefined

      Description

      When I try to export an image of the "Chikungunya E1.fasta" file (located in the folder "\test\UGENE-4299" on the UGENE file server", I get an error:

      Task {Image export task} finished with error: Failed to export image to C:\Users\oigl\Desktop\untitled_copy3.png.
      

      The issue occurs because the exported area is too big. A raster image can only be exported if it's width/height is less than 32768px / 32768px. Therefore, please fix the issue as follows:

      • Correct export to SVG format.
      • Support a handy export to vector format SVG (it has no the size limitation). Add SVG to the standard export dialog and remove the "Export as SVG" item.
      • Hide raster formats in the combo box in the export dialog if the size of the exported region is too big. Add a hint in this case in the dialog.
      • Replace errors that occur when exporting a too big image with SAFE_POINTs. Correct description of the messages anyway - it must be clear that an error occured because the alignment region is too big.

        Issue Links

          Activity

          Hide
          Eugenia Pushkova
          added a comment -

          Due to Qt limits (and SVG file size) it was decided to block any export if the image size is too big.
          Fixed in rev. 10268, 10270.

          Show
          Eugenia Pushkova
          added a comment - Due to Qt limits (and SVG file size) it was decided to block any export if the image size is too big. Fixed in rev. 10268, 10270.
          Hide
          Eugenia Pushkova
          added a comment -

          Detailed explanation:

          • Coordinates of Qt graphic classes are limited by 2^15 (32678)
          • Export to SVG format using Qt depends on QPainter that has stated limit of 2^15
            • workaround of this limit by scaling is not suitable because the result file will be very big (SVG of the file presented in the issue will be approximately 2Gb)
          Show
          Eugenia Pushkova
          added a comment - Detailed explanation: Coordinates of Qt graphic classes are limited by 2^15 (32678) Export to SVG format using Qt depends on QPainter that has stated limit of 2^15 workaround of this limit by scaling is not suitable because the result file will be very big (SVG of the file presented in the issue will be approximately 2Gb)
          Hide
          Eugenia Pushkova
          added a comment -

          Rev.10277: tests on svg export were corrected and a new one added (GUITest_common_scenarios_msa_editor::test_0052)

          Show
          Eugenia Pushkova
          added a comment - Rev.10277: tests on svg export were corrected and a new one added (GUITest_common_scenarios_msa_editor::test_0052)
          Hide
          Eugenia Pushkova
          added a comment -

          Forgotten commit to branch with appearance correction: 10293

          Show
          Eugenia Pushkova
          added a comment - Forgotten commit to branch with appearance correction: 10293
          Show
          Yuliya Algaer
          added a comment - https://ugene.unipro.ru/wiki/display/UUOUM17/Exporting+Alignment+as+Image

            People

            • Assignee:
              Eugenia Pushkova
              Reporter:
              Olga Golosova
              Assigned Tester:
              Kirill Rasputin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Agile