Skip to content

ImageField resize and maintain aspect ratio? #1068

Open
@sphildreth

Description

@sphildreth

Using this syntax:

class ThumbnailImage(EmbeddedDocument):
    element = ImageField(size=(200, 250, True), thumbnail_size=(50, 60, True))

What I would like is the ability to re-size the image to a maximum of 250px high and set the thumbnail size to maximum 60pixels high but for the re-sizing that occurs to maintain the aspect ratio.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions