Changeset 397037e in sasview for src/sas


Ignore:
Timestamp:
Jun 11, 2018 2:27:44 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
30bc96eb
Parents:
abcac7a
Message:

Slightly modify the image sizing for reporting so printing can be done properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/ReportPageLogic.py

    • Property mode changed from 100755 to 100644
    r57be490 r397037e  
    105105            data64 = base64.b64encode(data) 
    106106            data_to_print = urllib.parse.quote(data64) 
    107             html += '<img src="data:image/png;base64,{}">'.format(data_to_print) 
     107            html += FEET_2.format(data_to_print) 
    108108 
    109109        return html 
     
    204204""" 
    205205FEET_2 = \ 
    206 """<img src="%s" width="540"></img> 
    207 """ 
     206'''<img width="540" src="data:image/png;base64,{}"></img> 
     207''' 
    208208ELINE = """<p class=MsoNormal>&nbsp;</p> 
    209209""" 
Note: See TracChangeset for help on using the changeset viewer.