• Huan Yang's avatar
    Add support for Transforms.Scale([w, h]) with specific width and height (#133) · f6d49d8b
    Huan Yang authored
    * Fixed border missing on bottom and right side using make_grid
    
    * Add support for Transforms.Scale([h, w]) with specific height and width
    
    if self.size is a int then scale the image with the shorter side,
    otherwise if self.size is a list then scale the image to self.size
    directly
    
    * Add assert of size and doc for README
    
    Add assert of size and doc for README
    
    * Fix linter problem
    
    Fix linter problem
    
    * Add test for Scale
    
    Add test for Scale
    
    * Add both tuple and list support for Scale.size
    
    Add both tuple and list support for Scale.size
    
    * Add order of Scale.size in document and test case for list type of Scale.size
    
    Add order of Scale.size in document and test case for list type of
    Scale.size
    f6d49d8b
README.rst 13.1 KB