Carth Posted September 4, 2007 Share Posted September 4, 2007 I had an old site which resized images. I moved it onto a new server recently and the same images are darker, grainy, look generally low quality. The code hasn't changed at all so is there a setting somewhere that might be responsible? The old site was using functions imagecreatefromjpeg(), imagecreate(), imagecopyresized() and imagejpeg() with one or two arguments, i.e. the quality wasn't specified so I presume it used default. Quote Link to comment Share on other sites More sharing options...
Carth Posted September 4, 2007 Author Share Posted September 4, 2007 It's OK I fixed it. I changed imagecreate() to imagecreatetruecolor(). The old version of PHP was fine manipulating JPEG with just imagecreate() but this new one was giving strange colours. Quote Link to comment Share on other sites More sharing options...
Fadion Posted September 4, 2007 Share Posted September 4, 2007 U could consider also using imagecopyresampled() instead of imagecopyresized() for better results. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.