I'm not sure that `imagecreatefromstring` and `imagecreatefrom(gif|jpeg|png)` have different memory behaviors... I think both use the same amount.
Do you have more info about that ?
If you have time to write some memory tests, I'd be glad to see the results