> I will create a class that handle that, and passing some parameters I > will do the resize/crop there. > > In this way you can reuse the code say from a batch script or the > backend, etc.
So you do this in a helper? Okay, but then where do you call the helper? The form class? The action? The validator? On Sep 3, 2:31 am, harryjekyll <harryjek...@gmail.com> wrote: > I will create a class that handle that, and passing some parameters I > will do the resize/crop there. > > In this way you can reuse the code say from a batch script or the > backend, etc. > > On Sep 3, 2009, at 1:35 PM, Jake Barnes wrote: > > > > > > > I've a form that allows users to upload images that can represent them > > on the site. I need to crop and resize the images to be sure they are > > all the same size. I am curious where do most Symfony developers put > > their code for resizing images? In the form class? I assume it is bad > > practice to do this in the action? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---