Uh, as far as I know, they don't get resized, just displayed smaller.
So your images:
* Still take as long to transfer
* Cost you the same in bandwidth costs
* Go towards the maximum amount of cache the browser is allowed
(very important for mobile browsers)
They just look smaller on the
I discovered how to size my images as thumbnails without a plugin or
the need to save them.
Here is the coding I used:
?php echo image_tag($product-
getProductImgPath(),'width=150', 'height=150') ?
I didn't know image_tag had these attributes, but I found them at ..
Richtermeister,
I tried to install this code, but it wouldn't work for me. In my
indexSuccess.php, how can I get the path from the database as the
first parameter of thumbnail_tag? Please reference my original post
for the coding.
Thanks.
On Oct 18, 12:37 pm, Richtermeister nex...@gmail.com
Hi Alan,
Thanks for the post.
I would like to use this plugin if I could. My problem is I am a
complete novice with Symfony and so I don't know how to actually use
it. What code needs to be inserted in the actions.class.php file and
how do I call it for the effect I am trying to achieve? I do
Use sfImageTransformExtraPlugin - it is very easy to use, customizable
plugin, that requires almost nothing to make it work (transparently).
2010/10/17 xpanshun srhen...@gmail.com
How would I call to this class from my indexSuccess.php to get the
images to resize as they are displayed?
*See
I'm using the sfImageTransformPlugin in conjunction with the helpers
below:
/**
* Get the path of a generated thumbnail for any given image
*
* @param string $source
* @param int $width
* @param int $height
* @param boolean $absolute
* @return string
*/
function thumbnail_path($source,
@richtermeister, you really should look into sfImageTransformExtraPlugin
2010/10/18 Richtermeister nex...@gmail.com
I'm using the sfImageTransformPlugin in conjunction with the helpers
below:
/**
* Get the path of a generated thumbnail for any given image
*
* @param string $source
*
How would I call to this class from my indexSuccess.php to get the
images to resize as they are displayed?
This is what I have now:
table
?php foreach ($products as $product): ?
tr
td
?php echo image_tag($product-getProductImgPath()) ?
/td
/tr
How would I call to this class from my indexSuccess.php to get the
images to resize as they are displayed?
This is what I have now:
table
?php foreach ($products as $product): ?
tr
td
?php echo image_tag($product-getProductImgPath()) ?
/td
/tr
How would I call to this class from my indexSuccess.php to get the
images to resize as they are displayed?
*See coding in original post
On Oct 17, 2:43 pm, Martin Ibarra Cervantes
ibarra.cervan...@gmail.com wrote:
hi, you can try use this class with sfThumbnailPlugin
10 matches
Mail list logo