Joy
(@joyously)
This is what everyone always wants to avoid doing. When you scale up, where would the extra resolution come from? Typically, the algorithm is to double all the pixels. So if you choose a size that is not double the original, which pixels do you treat differently?
I have read this article about a workflow that produces good images by upscaling 20% more than the desired size and then going down to that size, but it works because it is using particular tools in Photoshop.
http://www.outbackphoto.com/workflow/wf_60/essay.html
Those tools are not built-in to PHP, although there are image tools, I don’t think all sites have them installed by default.
Thanks Joy. I’m not too worried about quality, to me its more important to have correctly sized images which do not break layouts or have ugly borders.
Joy
(@joyously)
My point wasn’t about quality. It was about how the algorithm actually creates a larger image from a smaller one. PHP doesn’t have that built-in. You have to have the right graphics library to get some functions, and not all servers have that.