• 
      

    Make 'thumbnail' tag more capable.

    Review Request #7114 — Created March 25, 2015 and submitted

    Information

    Djblets
    release-0.9.x
    5025339...

    Reviewers

    Our existing thumbnailer code was pretty limited, and only allowed people to
    pass in a certain image size as a string. This change improves it, especially
    for the case where it's being used from Python code. Callers can now pass in
    the thumbnail size as a 2-tuple of width and height. If the height is omitted,
    it will be calculated from the width to preserve the aspect ratio of the image.

    Used this in conjunction with my big file attachment redesign.

    Description From Last Updated

    Blank line before the comment.

    chipx86chipx86
    reviewbot
    1. Tool: PEP8 Style Checker
      Processed Files:
          djblets/util/templatetags/djblets_images.py
      
      
      
      Tool: Pyflakes
      Processed Files:
          djblets/util/templatetags/djblets_images.py
      
      
    2. 
        
    chipx86
    1. 
        
    2. Show all issues

      Blank line before the comment.

    3. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-0.9.x (3f275ee)