Programmed Under The Influence

I was working on the Account Settings page for one of my personal sites today and I noticed that the resized images I was uploading for test purposes were very pixelated. Then I noticed that my image resizing class was using imagecopyresized to resize the images. I decided to do some research and found that imagecopyresized is quick and dirty, while imagecopyresampled is more CPU intensive, but keeps some of quality making the image smoother and clearer in the end. Luckily for me I don’t allow larger than 50K uploads on my site so I’m now using imagecopyresampled.