Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Upscale and keeping ratio with the fill filter #726

@COil

Description

@COil

Thumbor request URL

http://localhost:8888/unsafe/80x40/filters:fill(white,true)/http%3A//assets.kelformation.com/logos/organismes/3672/logo_centre_3672_1.gif

Original image: Original image

Expected behaviour

Hi, I am trying to get a thumbnail of an exact size of 80x40, that's why I use the fill filter. I use the fit-in parameter if the original image if bigger in width or length than 80x40.

In this case the original image is 50x37, (it can be smaller or bigger than the requested width or length)

It should generate a 80x40 image but not cropped. In fact want I want is: this

Actual behaviour

Image is cropped and bottom and top parts of the original image are loosed, but its 80x40 as requested. if I use 0x40 the ratio is Ok but the image is 55x40 not 80x40.

Wrong generated logo

Operating system

  • Ubuntu 14.04
  • Thumbor 6.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions