We’re looking into switching from imigix to cloudflare for image resizing. I’ve been playing with cloudflare’s image resizing tool for the last few days and have a few questions.
Imigix has a feature that allows you to trim a uniform border around the image. You can choose to trim by color as well. This is very useful as it allows us to trim the extra whitespace around an image. Further, you can pad the trim by a uniform amount to add back a little of the white-space that was trimmed.
Original Image: https://testimages2.imgix.net/p4dbimg/1722/images/111808.jpg
Trimmed and Resized Image: https://testimages2.imgix.net/p4dbimg/1722/images/111808.jpg?fit=fill&trim=color&trimcolor=FFFFFF&trimtol=5&bg=FFFFFF&w=384&h=288
Is there any way to accomplish this using Cloudflare’s Image Resizing Tool?