EchoFool Posted May 15, 2009 Share Posted May 15, 2009 Just a quick question about image merges, can it also save images to the server after watermark, or is it only for having an image on top of another image when outputting the image to the browser... or can it do both ? And if so, which is most likely the better choice for least amount of processing power (i like to keep my server efficient after all hehe) Hope you can shed some light on this for me. Link to comment https://forums.phpfreaks.com/topic/158289-solved-question-about-image-merges/ Share on other sites More sharing options...
JonnoTheDev Posted May 15, 2009 Share Posted May 15, 2009 Use imagemagick for image manipulation. Far better than any method using the GD library. http://www.imagemagick.org/script/index.php Link to comment https://forums.phpfreaks.com/topic/158289-solved-question-about-image-merges/#findComment-834874 Share on other sites More sharing options...
Axeia Posted May 15, 2009 Share Posted May 15, 2009 Then again, not every host offers it and its often slower. Not to mention that if you're using the Imagick/ImagickDraw classes the documentation is very very poor. Back to the OP, (hope I understood the question right) Yes you can save a modified/watermarked image on the server as well as outputting it 'on the fly'. And as you already indicated, it's far more efficient to do the first. Link to comment https://forums.phpfreaks.com/topic/158289-solved-question-about-image-merges/#findComment-834876 Share on other sites More sharing options...
EchoFool Posted May 15, 2009 Author Share Posted May 15, 2009 Then again, not every host offers it and its often slower. Not to mention that if you're using the Imagick/ImagickDraw classes the documentation is very very poor. Back to the OP, (hope I understood the question right) Yes you can save a modified/watermarked image on the server as well as outputting it 'on the fly'. And as you already indicated, it's far more efficient to do the first. Ok so its far more efficient to create a new image with the watermark and just save it rather than output the merged image.. is this because the amount of times a user views the image means it has to merge it every time ? Which is what would make it less efficient ? Link to comment https://forums.phpfreaks.com/topic/158289-solved-question-about-image-merges/#findComment-834909 Share on other sites More sharing options...
Axeia Posted May 15, 2009 Share Posted May 15, 2009 Yes. It's doing the computation one time (when you process it) vs on every page request. Which tends to cause problems once someone starts spamming f5 on the page or when you just got a lot of visitors. Link to comment https://forums.phpfreaks.com/topic/158289-solved-question-about-image-merges/#findComment-834912 Share on other sites More sharing options...
EchoFool Posted May 15, 2009 Author Share Posted May 15, 2009 thank you for the help! Link to comment https://forums.phpfreaks.com/topic/158289-solved-question-about-image-merges/#findComment-835055 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.