Skip to content

Downscale only option? #35

@tontonsb

Description

@tontonsb

I would like to resize the image only if it is larger than the size limits. This is my current code:

$fopen = Image::make($image, [
	'width' => 2400,
	'height' => 1600
])->get($ext);

Unfourtunately it upscales every image that is smaller in both dimensions. Can I pass some option or do something else to disallow upscaling?

I think I did this successfully before and I believe this was changed in version 0.1.6.

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