user156888
user156888

Reputation:

Scale image up using imageresizer

I am processing images using the ImageResizer library. All of the images vary in size and I want to create normalized renditions of them. Say:

etc...

So - when an image comes in that is 100 x 100 - how can I scale that image up so that I end up with 120 x 120 and 400 x 400?

Atm if the image is smaller than the resize dimensions it seems to leave the image alone

Upvotes: 0

Views: 396

Answers (1)

Lilith River
Lilith River

Reputation: 16468

  • To upscale OR downscale the image (resulting in blurriness), use scale=both.
  • To upscale the canvas and leave the original photo at 1:1, use `scale=canvas1.
  • To upscale only, never downscaling, use scale=up.

Check out ImageResizer Basics for some visual examples.

Upvotes: 1

Related Questions