title: Concrete5: An image could not be created from the given input
body: <p>Using Concrete5 8.1, I am getting the error <code>An image could not be created from the given input</code> on every page.</p>
  
  <p>I created a custom theme, custom Thumbnail sizes, and custom Page Types, most of the site content has been entered and everything was working well.  In reviewing the site before it goes live, I noticed most of the images had been uploaded as fairly large images (2000-4000 pixels wide, nothing insanely huge, but large enough that I wanted to do something about it).</p>
  
  <p>Based on the <a href="https://documentation.concrete5.org/developers/designing-for-concrete5/supporting-responsive-images-in-your-concrete5-theme" rel="nofollow noreferrer">Concrete5 documentation</a>, I added the following code:</p>
  
  <pre><code>  public function getThemeResponsiveImageMap() {
      return array(
        'timeline_gallery' =&gt; '0'
      );
    }
  </code></pre>
  
  <p>The <code>timeline_gallery</code> thumbnail has existed since the start of this project, so all images should have already had this thumbnail. But when I refreshed the page, I see the error: <code>An image could not be created from the given input</code>.</p>
  
  <p>Google finds many entries for this error: potentially related to GD not being able to process SVG, PNG, or very large images, and the solution is to address the problem images within the File Manager.  However, I cannot get to the File Manager - I cannot get to any page on the site, including any of the dashboard pages (all display the same error).</p>
  
  <p>I then remove the 5 lines of code from above (the only code changes that have taken place over the past 24 hours) and save the page_theme.php, but I still see the same error on every page.</p>
  
  <p>It would be great to be able to fix the image sizes, but at this point, I'd just like to clear the error and make the site work again. I have looked at the Apache log for any specifics on the error (no help, since the error doesn't show up), I have restarted Apache, and then rebooted the machine (all to no avail). With the code being the same as when the site was working earlier today (and all content editors have left, so no content changes have taken place), I'm guessing there might be a queue, either in the file system or database, of images to be resized and one of them is causing an issue... but it's just a guess.</p>