The following code merges a blob image from mysql with a logo image to be shared on social sites.
The problem is that the blob always looks fuzzy, the logo looks crisp but is often wider than the blob image. This seems to happen randomly and makes no sense since both images are always the same width.
Wondering if someone could offer a solution which would merge both at the optimum social site (FB in this case) size, making them the same width and both crisp. No idea if this is something which can be asked, done in a question like this but thought I'd ask since my dev isn't around for a couple days and I need this fixed.