title: Changing image name dynamically using the same source image
body: <p>Consider I have an image named "car.jpg". </p>
  
  <p>I have multi-language stores in my site and client wants to show the same image in various languages. Like car is called voiture in French so the image name should be "voiture.jpg", but it will show the same image i.e. car.jpg.</p>
  
  <p>Also while saving / downloading the image it should get saved as voiture.jpg from the French store and car.jpg from the English store.</p>
  
  <p>I have plans to input the names of the images from the client via a back-end panel, but can’t get ideas about how to implement this in front-end. </p>
  
  <p>Note:- <strong>The image is not on my server</strong></p>
  
  <p>I have copied the image on fly and can use it as below, using class upload, but need a better option than coping image as there are above 4000 images.</p>
  
  <pre><code>&lt;img src='./media/scene7/car.jpg' alt='car'&gt;
  
  &lt;?php
      include('class.upload.php');
  
      $img = new Upload('media/scene7/car.jpg');
  
      if ($img-&gt;uploaded) {
          $img-&gt;file_new_name_body = 'voiture';
          $img-&gt;file_auto_rename = false;
          $img-&gt;file_overwrite = true;
          $img-&gt;Process('./media/scene7/translated/');
      }else{
      }
  
      echo "&lt;br /&gt;&lt;br /&gt;Car is called voiture in French, you are seeing the image of voiture.&lt;br /&gt;";
  ?&gt;
      &lt;img src='./media/scene7/translated/voiture.jpg' alt='car'&gt;
  
  &lt;?php
  
      if ($img-&gt;uploaded) {
          $img-&gt;file_new_name_body = 'auto';
          $img-&gt;file_auto_rename = false;
          $img-&gt;file_overwrite = true;
          $img-&gt;Process('./media/scene7/translated/');
      }else{
          echo "not uploaded";
      }
  
      echo "&lt;br /&gt;&lt;br /&gt;Car is called auto in German, you are seeing the image of auto.&lt;br /&gt;";
  
  ?&gt;
      &lt;img src='./media/scene7/translated/auto.jpg' alt='car'&gt;
  
  &lt;?php
  
      if ($img-&gt;uploaded) {
          $img-&gt;file_new_name_body = 'coche';
          $img-&gt;file_auto_rename = false;
          $img-&gt;file_overwrite = true;
          $img-&gt;Process('./media/scene7/translated/');
      }else{
          echo "not uploaded";
      }
  
      echo "&lt;br /&gt;&lt;br /&gt;Car is called coche in Spanish, you are seeing the image of coche.&lt;br /&gt;";
  
  ?&gt;
      &lt;img src='./media/scene7/translated/coche.jpg' alt='car'&gt;
  
  &lt;?php
      $img = new Upload('http://s7d7.scene7.com/is/image/zeon/Stack_Mouse');
  
      if ($img-&gt;uploaded) {
          echo 'uploaded image from url';
      }else{
          echo $img-&gt;error;
      }
  ?&gt;
  </code></pre>