Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downscale only option? #35

Open
tontonsb opened this issue Apr 19, 2017 · 1 comment
Open

Downscale only option? #35

tontonsb opened this issue Apr 19, 2017 · 1 comment

Comments

@tontonsb
Copy link
Contributor

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.

@costicanu
Copy link

same issue here! I never found the need to upscale an image, only downscaling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants