Changeset 397037e in sasview


Ignore:
Timestamp:
Jun 11, 2018 4:27:44 AM (2 months ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_beta_approx, ESS_GUI_iss957, ESS_GUI_iss959, ESS_GUI_iss971, ESS_GUI_iss976
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.