Uploading/Resizing/Watermarking - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Uploading/Resizing/Watermarking (/showthread.php?tid=12944) |
Uploading/Resizing/Watermarking - El Forum - 11-05-2008 [eluser]Unknown[/eluser] Hello there, I'm new to the forum and I've got a problem with image uploading with CI. Now I would like to upload an image->watermark it->make a copy of it->resize the copy. While I actually can upolad it and resize a copy, but I have trouble with watermark since it seems I can't do both. Here is the code: Code: $config['image_library'] = 'GD2'; If I leave this code I can do all the things I need without watermarking. So I add this: Code: $pic = realpath('./uploads/'.$newimagename); Now I get this result: I get two images, the first without watermarking, and the thumbnail watermaked, but still with original dimensions. How can I fix this? |