title: Symfony - resize image after upload
body: <p>I have the following problem, uploads a file using symfony, it is moved with the original resolution and extension. And now I would like to create a second file, which is a copy of the first one but with a resolution of 320px x 60px and that it should be in the name, ie how the original file has the name:
  my_images.png I would like the copy to be named my_images_320x60.png</p>
  
  <p>After correct upload, my picture is available at http: //localhost/uploads/i/my_images.png</p>
  
  <p>My upload looks like this:</p>
  
  <pre><code>$logoFile = $this-&gt;getValidatorParameter('logo_file');
  $storage = $this-&gt;get('file.event.storage');
  $file = $storage-&gt;upload($logoFile-&gt;getValue());
  </code></pre>
  
  <p>Anyone have any idea how to do it? The image is copied, I have a path to it, but I can not change its resolution and name :(</p>