I would like to create fixed size thumbnails of images. The /thumbnail endpoint seems to resize which distorts the image. The /fit endpoint will "fit" the image within the specified target size, but the image may be smaller. The image operations are not really explained in detail.
I would like to call /operation?width=200&height=200&url=https://via.placeholder.com/400x200.png?text=400x200 to get a 200x200 image with "fitted" original content that has the empty space filled with transparency (or a defined background color). Is that possible?
I would like to create fixed size thumbnails of images. The
/thumbnail
endpoint seems to resize which distorts the image. The/fit
endpoint will "fit" the image within the specified target size, but the image may be smaller. The image operations are not really explained in detail.I would like to call
/operation?width=200&height=200&url=https://via.placeholder.com/400x200.png?text=400x200
to get a 200x200 image with "fitted" original content that has the empty space filled with transparency (or a defined background color). Is that possible?