If you use php5 and gd2 i wrote a image helper also.. it has a crop /
resize function and saves png with transparent bg.. the one on the
bakery didn't

http://www.mech7.net/articles/view/2/cakephp-image-helper

If you want it to return only the paths then change the html->image
functions for example:

return $this->Html->image($this->relativeImgPath.$cache_filename,
$htmlAttributes);

becomes :

return $this->relativeImgPath.$cache_filename;


On May 12, 6:41 pm, Kyle Decot <[EMAIL PROTECTED]> wrote:
> I'm using the image resizer I found at the 
> bakery(http://bakery.cakephp.org/articles/view/image-resize-helper), but I'm
> having a problem with it. I want to use the image it generates as a
> css background image. here is my code:
>
> echo "<div id = 'full_thumb' onClick = 'full_size();' style = 'width:
> 300px; background-image:url(" . $image->resize("/park_photos/" .
> $p["location"], 300, 225, true) . "); height:225px;
> position:relative;'>"; ..//etc
>
> it returns the image address wrapped in the img tag, when all I need
> is the address. Anyone know how to do this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to