title: Force Wordpress to create Thumbnails of same Size as the uploaded Image
body: <p>AFAIK, Wordpress only generates Thumbnails (e.g., 'large') only when the desired image size is <em>smaller</em> (and not when the target size would be the same).</p>
  
  <p>I use</p>
  
  <blockquote>
    <p><code>add_image_size( 'referenzen-big', 627, 490, true );</code></p>
  </blockquote>
  
  <p>So if my customer uploads a file with 627x490px, the original Image will be used.</p>
  
  <p>But this is not desired, since this customed, in all good faith, uploads the images in the right size, and also highest possible .jpg-compression. This results in images being around 300kB in this case.</p>
  
  <p>A pratical, but technicall not flawless way would be to ask him to upload his images in 628x490, so 1px more width, forcing a rescale. Suggestions like this will not be accepted :-)</p>
  
  <p>So far, I've investigated the hooks responsible for image creation, and tracked the responsible function down; here's the last hook I found:
  <a href="http://xref.yoast.com/2.9/nav.html?wp-includes/media.php.source.html#l416" rel="noreferrer">image_make_intermediate_size()</a></p>
  
  <p>this is the function responsible for the actual resizing:
  <a href="http://xref.yoast.com/2.9/wp-includes/media.php.source.html#l266" rel="noreferrer">image_resize_dimensions()</a>.
  There's even a line saying:</p>
  
  <pre><code>// if the resulting image would be the same size or larger we don't want to resize it
  if ( $new_w &gt;= $orig_w &amp;&amp; $new_h &gt;= $orig_h )
      return false;
  </code></pre>
  
  <p>So how can I enable this "force resize" feature?</p>