Following some discussion in general, I'm hoping for help or insights from anyone for how to autoscale an image to fit into an iframe.
This started with a desire to just have the APOD in an iframe and snowballed from there. The APOD is already being pulled with a bash command, but due to the daily resolution changes, will require autoscaling to fit an iframe.
This will no longer be required once the picture widget rolls out.