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. Link to comment https://forums.phpfreaks.com/topic/67907-solved-image-quality/ 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. Link to comment https://forums.phpfreaks.com/topic/67907-solved-image-quality/#findComment-341318 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. Link to comment https://forums.phpfreaks.com/topic/67907-solved-image-quality/#findComment-341334 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.