Image Moo - Image manipulation library |
[eluser]ClaudioX[/eluser]
OMG, auhauha, i probably see now, in the image tag put the image_resize uri (controller/func_resizer/image_path) To image_path i use: Code: public function setSpecialChar($string){ Thx again for all help! humm, CI have someway to cache this? for now i dont want create another file.. "Warning: Because of the way CodeIgniter stores content for output, caching will only work if you are generating display for your controller with a view." Damn it!
[eluser]Irfan Cikoglu[/eluser]
Amazing library, thanks. Can we use URL for load?
[eluser]Irfan Cikoglu[/eluser]
It doesn't works with URL but i fixed. Hope this helps ![]() Now you can use local image or remote URL for manipulating. ![]() Download: http://pastebin.com/raw.php?i=hTwccqHg Usage: Code: $this->load->library('image_moo'); CHANGED: _load_image() function ADDED: _check_url() function Regards.
[eluser]fatdog[/eluser]
[quote author="Mat-Moo" date="1309232350"][quote author="Philo01" date="1303932815"]Great library! =) I noticed that it doesn't support the resize of transparent PNG images at the time so for those who are interested in this, open image_moo.php and look for ( line 552 ): Code: // if padding, fill background Add the following below: Code: imagealphablending($this->temp_image, false); That should do it! ![]() Kind regards, Philo[/quote] Where should this be added? after the pad code? I need ot work on keeping transparency data![/quote] The code goes inside the pad block. But this line: Code: imagefilledrectangle($this->temp_image, 0, 0, $this->width, $this->height, $color); Should be changed to: Code: imagefilledrectangle($this->temp_image, 0, 0, $tx, $ty, $color); That's how I made it work
[eluser]Unknown[/eluser]
When I display a png image with save_dynamic if the orignal file background is transparent its show in black when I display it someone know how to fix it?
[eluser]nikes[/eluser]
Cool lib! many thanks quite an ideal offer for sharing
[eluser]S-Vizion Software and Development[/eluser]
Out of curiosity, when I try to watermark a image, it saves the image but never makes the watermark work. From what I've read am I doing this correctly Quick Edit $this->watermark_text = string $this->watermark_font = realpath ( APPPATH . '../../assets/fonts/Sniglet-webfont.ttf'); Code: $this->load->library('pictures/image_moo'); Thanks Nevermind I just noticed my watermark's were after the saves duh Code: $this->image_moo->load( $fullpath ) Proper method of doing it
[eluser]Mat-Moo[/eluser]
Have you tried seeing if there is any errors? if ($this->image_moo->errors) print $this->image_moo->display_errors(); |
Welcome Guest, Not a member yet? Register Sign In |