title: Add whitespace to image and save file to server
body: <p>I have a script that generates some HTML for newsletters.  I'm floating an image using "align=left" and wrapping text around it.  I use an inline CSS style, in this case margin-right, to give the image some breathing room.  Outlook ignores this.  Outlook also ignores padding - I even tried a 10px border-right, it ignored that, too.</p>
  
  <p>I can't change the layout and put the image in a table.  I am thinking of using GD to manipulate the image, adding 8px of whitespace to the right side of it.  The catch is, since this is a newsletter going out to thousands of people, is that I then need to save the modified image to the server somewhere so I can link to it.  I don't want to generate this on the fly.</p>
  
  <p>I have zero experience with GD or saving files to a location with PHP.  Here is my image code:</p>
  
  <pre><code>&lt;img alt="&lt;?php print $main2['title']; ?&gt;" height="127" width="185" src="http://www.mydomain.com/uploads/&lt;?php print $main2['filename']; ?&gt;" align="left" style="margin:8px 8px 0 0;"/&gt;
  </code></pre>