<a href="https://test.com/foo.jpg#d" ><img src="http://test.com/8.jpg"/></a>
<a href="https://test.com/foo.jpg#d" ><img src="http://i0.wp.com/8.jpg"/></a>
--RESULTS--
<a href="https://i0.wp.com/test.com/foo.jpg?ssl=1" ><img data-recalc-dims="1" src="https://i0.wp.com/test.com/8.jpg"/></a>
<a href="https://i0.wp.com/test.com/foo.jpg?ssl=1" ><img src="http://i0.wp.com/8.jpg"/></a>
