[UGENE-4299] Failed to export an image of the "Chikungunya E1" alignment Created: 27/Apr/15  Updated: 01/Oct/16  Resolved: 25/May/15

Status: Closed
Project: UGENE
Component/s: Basic-MSA
Affects Version/s: 1.16.1
Fix Version/s: 1.17

Type: Improvement Priority: Blocker
Reporter: Olga Golosova Assignee: Eugenia Pushkova [X] (Inactive)
Resolution: Fixed  
Labels: publication_quality, request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
is blocked by UGENE-4305 Investigate the possibility to export... Closed
Relates
relates to UGENE-4483 Export alignment into image does not ... Closed
relates to UGENE-4484 Incorrect export of alignments to SVG Closed
relates to UGENE-4497 UGENE hangs on saving huge MSA as ima... Closed
Story Points: 13
Assigned Tester: Kirill Rasputin
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.


 Comments   
Comment by Eugenia Pushkova [X] (Inactive) [ 25/May/15 ]

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.

Comment by Eugenia Pushkova [X] (Inactive) [ 25/May/15 ]

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)
Comment by Eugenia Pushkova [X] (Inactive) [ 26/May/15 ]

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

Comment by Eugenia Pushkova [X] (Inactive) [ 27/May/15 ]

Forgotten commit to branch with appearance correction: 10293

Comment by Yuliya Algaer [ 20/Jun/15 ]

https://ugene.unipro.ru/wiki/display/UUOUM17/Exporting+Alignment+as+Image

Generated at Tue Apr 23 23:22:12 NOVT 2024 using Jira 8.5.0#805000-sha1:facbf8be6a56ed8ab71dea158b6e159962506101.