|
Is there any helper/script for cropping and resizing images in realtime? I'm trying to adapt this script http://www.ajaxprogrammer.com/?p=9 to work with my website, but without success, so I'm trying to find something diffrent :( --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
Check out ImageMagick (not CakePHP plugin, but a powerful set of tools)
On 9/9/07, d'plus <[hidden email]> wrote:
-- Sincerely yours, Olexandr Melnyk http://omelnyk.net/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
Olexandr Melnyk napisał(a): > Check out ImageMagick (not CakePHP plugin, but a powerful set of tools) thanks. But can I achieve editing like this http://www.ajaxprogrammer.com/examples/ImageEditor/index.php?imageName=Water_Lilies.jpg with imageMagick? the problem is, that I want to make editing in real-time, using AJAX and stuff... I think it's the only way to make cropping really usable. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
I think its the same used in: http://www.phpletter.com/Demo/Ajax-File--Manager/ and that works fine for me :) with tinymce, check if GD or ImageMagick is installed On Sep 9, 9:29 pm, d'plus <[hidden email]> wrote: > Olexandr Melnyk napisał(a): > > > Check out ImageMagick (not CakePHP plugin, but a powerful set of tools) > > thanks. > But can I achieve editing like thishttp://www.ajaxprogrammer.com/examples/ImageEditor/index.php?imageNam... > with imageMagick? > the problem is, that I want to make editing in real-time, using AJAX > and stuff... I think it's the only way to make cropping really usable. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
In reply to this post by d'plus
On 9/9/07, d'plus <[hidden email]> wrote: > But can I achieve editing like this > http://www.ajaxprogrammer.com/examples/ImageEditor/index.php?imageName=Water_Lilies.jpg > with imageMagick? > the problem is, that I want to make editing in real-time, using AJAX > and stuff... I think it's the only way to make cropping really usable. Well, a quick look at that page tells me a few things: 1) It's not written in PHP 2) It's using the Google Gadgets API 3) You probably need to be an AJAX guru to make something like that. -- Chris Hartjes Senior Developer Cake Development Corporation My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
Chris Hartjes napisał(a): > On 9/9/07, d'plus <[hidden email]> wrote: > > But can I achieve editing like this > > http://www.ajaxprogrammer.com/examples/ImageEditor/index.php?imageName=Water_Lilies.jpg > > with imageMagick? > > the problem is, that I want to make editing in real-time, using AJAX > > and stuff... I think it's the only way to make cropping really usable. > > Well, a quick look at that page tells me a few things: > > 1) It's not written in PHP > 2) It's using the Google Gadgets API > 3) You probably need to be an AJAX guru to make something like that. well, it's not so complicated as it looks. there are some js functions to make the whole visual editing, and after clicking "crop" there is xhtml http request with values from screen, and all operations are done in php script. after this, image is reloaded. it's quite simple script, but I have problems with this http request, with putting it into my own controllers and make it communicate properly, which is all rather hard to do with my low js knowledge. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
In reply to this post by Olexandr Melnyk
I use a helper for image manipulation. A simple example would be: <?php class ImageHelper extends Helper { var $helpers = array('Html'); var $cacheDir = 'imagecache'; // relative to IMAGES_URL path function link($file) { return $this->Html->link($this->Html->image($file, array('border' => '0')), '/', null, null, false); } // End Function function resize($path, $width, $height, $aspect = true, $htmlAttributes = array(), $return = false) { // Resize logic here // Return the image return $this->output(sprintf($this->Html->tags['image'], $relfile, $this->Html->parseHtmlOptions($htmlAttributes, null, '', ' ')), $return); } // Add other manipulation functions here } ?> In your view, you can do: <?php echo $image->resize($image, 135, 124, false, array('alt'=>'my resized image', 'border'=>1, 'hspace'=>4));?> HTH -Erich- Olexandr Melnyk wrote: > Check out ImageMagick (not CakePHP plugin, but a powerful set of tools) > > On 9/9/07, *d'plus* <[hidden email] <mailto:[hidden email]>> wrote: > > > Is there any helper/script for cropping and resizing images in > realtime? > > > I'm trying to adapt this script http://www.ajaxprogrammer.com/?p=9 to > work with my website, but without success, so I'm trying to find > something diffrent :( > > > > > > -- > Sincerely yours, > Olexandr Melnyk > http://omelnyk.net/ > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
In reply to this post by d'plus
Try this one: http://www.dhtmlgoodies.com/index.html?whichScript=image-crop On Sep 9, 9:31 pm, d'plus <[hidden email]> wrote: > Chris Hartjes napisał(a): > > > On 9/9/07, d'plus <[hidden email]> wrote: > > > But can I achieve editing like this > > >http://www.ajaxprogrammer.com/examples/ImageEditor/index.php?imageNam... > > > with imageMagick? > > > the problem is, that I want to make editing in real-time, using AJAX > > > and stuff... I think it's the only way to make cropping really usable. > > > Well, a quick look at that page tells me a few things: > > > 1) It's not written in PHP > > 2) It's using the Google Gadgets API > > 3) You probably need to be an AJAX guru to make something like that. > > well, it's not so complicated as it looks. there are some js functions > to make the whole visual editing, and after clicking "crop" there is > xhtml http request with values from screen, and all operations are > done in php script. after this, image is reloaded. > it's quite simple script, but I have problems with this http request, > with putting it into my own controllers and make it communicate > properly, which is all rather hard to do with my low js knowledge. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Powered by Nabble | Edit this page |
