Hi, Maybe you can use
$thumbnail = new sfThumbnail(150, 150,true, false); The third parameter is for keeping the same proportions as the original picture, and the fourth parameter is to allow or not the inflation. I am not sure because I didn't test but it's what I understood reading the plugin documentation. Greg 2009/11/3 ffffffffffff dddddddd <adfadf...@gmail.com> > > I want that image can has maximum size 150x150 px so I make: > $thumbnail = new sfThumbnail(150, 150); > and everything is ok when image is bigger than 150x150. > > But when image has size for example 20x20 px, it is converted to size > 150x150 px !!! In that case image should have 20x20 px - how can I do > that when image is smaller ?? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---