cubicdaiya / ngx_small_light

Dynamic Image Transformation Module For nginx.
Other
472 stars 80 forks source link

Is it possible to center the original part of the canvas when enlarging the image without knowing the previous size? #101

Open tettsu opened 3 years ago

tettsu commented 3 years ago

Thanks for a good module. I'm thinking of using ngx_small_light.

What I want to do is not to make the original part bigger when making the image bigger, but to add a margin around it so that the original is centered. I want to do this without knowing the original size of the image. Can it be achieved?

Below is what I tried.

Thanks.