• Nicolas Delaby's avatar
    Refactoring of Image conversion. · e9a826a9
    Nicolas Delaby authored
      * use DEFAULT_QUALITY constant
      * Postpone the test off relevance conversion parameters in order to check
        if resizing is not needed to fit display ratio.
        If test succeed then call convert, otherwise return raw image (getData).
      * remove _getDisplayPhoto and merge is code inside _makeDisplayPhoto
        because this method is called from only one statement and factorisation
        is null
    
    
    
    git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35240 20353a03-c40f-0410-a6d1-a30d3c3de9de
    e9a826a9
Image.py 17.2 KB