This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » General plug-ins » sfImageTransformPlugin - doesn't resize well
icon4.gif  sfImageTransformPlugin - doesn't resize well [message #103228] Thu, 29 July 2010 10:15
enigma
Messages: 94
Registered: March 2007
Location: Poland
Member
I try to use sfDoctrineJCroppablePlugin, it use sfImageTransformPlugin to resize images, but resizing does't work well.

In code
    $img = new sfImage($dir . DIRECTORY_SEPARATOR . $original);
    $img->resize(400, null);
    $img->saveAs($dir . DIRECTORY_SEPARATOR . $editable);


But when I upload for example image with resolution 1280x1024 it create image 400x1024. Could anybody help with this?

EDIT
Of course I can create own function to calculate resolution and pass right parameters to
$img->resize(400, null);

But I would like to know why id doesn't work well. Probably more people have such problem.

[Updated on: Thu, 29 July 2010 10:43]


PaweĊ‚ Ryznar - programista JAVA :: Love IT - devBlog
Previous Topic:[Solved] sfDoctrineGuard and Credentials
Next Topic:ckWebServicePlungin Recive byte[] parameter
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software