Calculate max pixel dimension?

I'm just curious how to calculate the maximum pixel dimension from the PHP memory limit? So I don't have to load the same pic with different dimensions to see which works. Anybody has an idea?


style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-8698264690166658"
data-ad-slot="4417389723">