I love the image resizing’s ability to draw overlays and watermarks. However, I have a need to first make some resizing and placement choices based on original image’s dimensions and aspect ratio. Is there any way to get the origin image’s file dimensions before I perform the fetch() that does the resizing/overlaying?
Every search I’ve tried just results in discussions about general image resizing.
Where are the image size values that I was promised?
I’m also concerned that requesting the image twice is very inefficient. It would better if I could request the image, get its sizing information, and then set my resize/overlay options and continue with the image processing without requesting the image a second time. It doesn’t seem Cloudflare set it up to be flexible, assuming that blindly processing our images is all we’ll ever need.