FlyingIsFun1217 Posted May 30, 2008 Share Posted May 30, 2008 Hey! I've been using the copy function to copy an image and delete the old one (to rename it), and I've been noticing that the image quality has degraded after copying it. Is this typical? Is there something I can do about it? Thanks! FlyingIsFun1217 Link to comment https://forums.phpfreaks.com/topic/107910-solved-image-degradation-with-copy/ Share on other sites More sharing options...
The Little Guy Posted May 30, 2008 Share Posted May 30, 2008 It shouldn't decrease, there must be something more your doing... Link to comment https://forums.phpfreaks.com/topic/107910-solved-image-degradation-with-copy/#findComment-553141 Share on other sites More sharing options...
haku Posted May 30, 2008 Share Posted May 30, 2008 Why don't you use rename instead. If the problem persists, then the quality degradation is a result of something else, not the copying of the file. And besides, using rename will use less resources than copy, making your application run smoother. Link to comment https://forums.phpfreaks.com/topic/107910-solved-image-degradation-with-copy/#findComment-553184 Share on other sites More sharing options...
Gighalen Posted May 30, 2008 Share Posted May 30, 2008 If you have any resize() function of any kind in your script, you might try revising it. I had a lot of problems with this back in the day when I made 'community sites'. If you're resizing it unproportionally (Ex. Width by .5 and height by .7), its really easy to lose a lot of the original quality, given your uploading to MySQL and not as a hard copy. Link to comment https://forums.phpfreaks.com/topic/107910-solved-image-degradation-with-copy/#findComment-553190 Share on other sites More sharing options...
FlyingIsFun1217 Posted May 30, 2008 Author Share Posted May 30, 2008 No resizing is done, which is why it surprised me. I'll look into the rename function. I was looking for something like it earlier, but as strange as it sounds, I couldn't find it. Thanks! FlyingIsFun1217 Link to comment https://forums.phpfreaks.com/topic/107910-solved-image-degradation-with-copy/#findComment-553391 Share on other sites More sharing options...
FlyingIsFun1217 Posted May 30, 2008 Author Share Posted May 30, 2008 Well, it seems to have been something with 'copy'; using resize works perfectly! Thanks everybody! FlyingIsFun1217 Link to comment https://forums.phpfreaks.com/topic/107910-solved-image-degradation-with-copy/#findComment-553392 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.