Answers.Body: <p>I had this same issue and resolved it (at the suggestion of Craft CMS support) by enabling ImageMagick in the php.ini and restarting MAMP PRO.</p>
  
  <p>Per the MAMP PRO 3.0 user guide:</p>
  
  <p><em>The ImageMagick PHP module is included by default, but you must enable it inside the php.ini template file. Remove the ‘;’ from the following line.
  ;extension=imagick.so</em></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-07T18:22:31.740Z
Answers.Text: On MAMP PRO, enabling imagick solved the problem.
Answers.UserDisplayName: Shawn Wernig
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-23T06:38:50.210Z
Answers.Text: Thanks - same problem on MAMP PRO 4.1.1 and installing ImageMagick solved the problem. Thanks : )
Answers.UserDisplayName: JKM
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-30T17:59:35.300Z
Answers.Text: Enabling Imagick solved this issue for me, also. **In MAMP 4, you can easily enable Imagick/ImageMagick under the "Extensions" checkboxes in the PHP settings.**
Answers.UserDisplayName: Michael Rog
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-23T20:40:33.737Z
Answers.LastActivityDate: 2015-12-23T20:40:33.737Z
Answers.UserDisplayName: PhilR
Answers.Body: <p>I had the same issue and solved it. This seems to be an issue with the exif lib. Try to disable mbstring overloading by setting</p>
  
  <p><code>mbstring.func_overload = 0</code></p>
  
  <p>to your php.ini or </p>
  
  <p><code>php_admin_value mbstring.func_overload 0</code></p>
  
  <p>in your apache virtual host configuration.</p>
  
  <p>Hope that helps</p>
  
  <p>-Oliver</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-22T22:50:14.190Z
Answers.Text: That worked for me, thanks.  To layout some history.  I upgraded my linux server to a dedicated.  Including mysql 5.7 (mariadb 10.2.8), nginx, centos 7.3, php 7.1.  After all that, I discovered a few odd things like this image upload issue.  So it's something of an odd issue but whatever it is, the solution works.
Answers.UserDisplayName: Vin
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-28T15:21:12.910Z
Answers.LastActivityDate: 2015-01-28T15:21:12.910Z
Answers.UserDisplayName: Oliver
Answers.Body: <p>I kept bumping into the same kind of issue. Even when I applied a fix mentioned here or in another topic. After a while the same issue would arise again.</p>
  
  <p>What finally did the trick for me - in MAMP, was to add additional parameters to the host-file.</p>
  
  <p>In MAMP, select the desired host. On the right side choose the Extended tab. Where it says 'Additional parameters for ' add this line:</p>
  
  <p><em>AddHandler fastcgi-script .fcgi</em></p>
  
  <p>This looks a lot like <a href="https://craftcms.stackexchange.com/questions/4661/fastcgi-error-when-accessing-a-local-development-site-using-mamp-pro">the solution mentioned here</a>, but for some reason it didn't stick.</p>
  
  <p>Restart server (in later versions MAMP restarts itself) and you should be good to go! </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-27T10:17:49.960Z
Answers.LastActivityDate: 2015-08-27T10:17:49.960Z
Answers.LastEditDate: 2017-04-13T12:51:00.160Z
Answers.UserDisplayName: Sjoerd
Answers.Body: <p>From your error, I think the fact that only JPG files are failing is a coincidence.</p>
  
  <p>Perhaps when you were testing the PNG, GIF and TIFF files were all relatively small, but the JPG files were large enough to bump you over the 32MB limit assigned to PHP in your <code>php.ini</code> file.</p>
  
  <p>Regardless, if you open up your <code>php.ini</code> file, find the <code>memory_limit</code> setting, and bump it up to 128MB (or 256MB if you're feeling saucy), the problem should go away.</p>
  
  <p>You might have to restart your web server before that setting takes effect.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-30T20:08:23.873Z
Answers.Text: I only wish this were the case... no matter the size .jpg files don't work. I've tried .jpgs at 100kb and 20mb and get the same issue.
Answers.UserDisplayName: Jeremy P. Beasley
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-30T22:15:01.143Z
Answers.Text: Can you reproduce the issue with devMode enabled, zip up your `craft/storage/runtime/logs` folder and send it to support@buildwithcraft.com?  I'll update here with anything we find.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-30T14:28:41.437Z
Answers.LastActivityDate: 2014-12-30T14:28:41.437Z
Answers.UserDisplayName: Brad Bell
Body: <p>No idea why but my local install of CraftCMS (in a MAMP environment) won't let me upload JPGs. PNG, GIF, even TIFF works (just for the heck of it). When I select the file in the browser dialog, it closes then shows the loader bar and spinning gif anim. No progress is ever shown and the spinning continues eternally. <a href="http://cl.ly/image/1a2l1W2t1P1x" rel="noreferrer">http://cl.ly/image/1a2l1W2t1P1x</a></p>
  
  <ul>
  <li>Craft is up to date</li>
  <li>Uploads on remote install works perfectly</li>
  <li>Getting this error <code>net::ERR_EMPTY_RESPONSE</code> along with these details: <a href="http://cl.ly/image/3D2w1F2l2O1x" rel="noreferrer">http://cl.ly/image/3D2w1F2l2O1x</a></li>
  <li>Checked my php.ini file and it allows JPG uploads</li>
  </ul>
  
  <p>I realize this may not even be an issue with Craft but a server side issue. I just have no idea how to troubleshoot this. Any help would be much appreciated!</p>
  
  <p>I also checked my phperrors.log file and I got only this which is from back in early Dec and seemingly unrelated. </p>
  
  <pre><code>  [08-Dec-2014 02:47:37 UTC] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 9792 bytes) in /Applications/MAMP/htdocs/sucasa/craft/app/vendor/imagine/imagine/lib/Imagine/Gd/Image.php on line 199
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-12-29T03:44:41.350Z
Comments.Text: Check your `craft/storage/runtime/logs` files for any entries that begin with `[error]` or for the existence of a `phperrors.log` file, which will hold any PHP fatal errors.
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-12-30T04:39:22.383Z
Comments.Text: Added my error (though seemingly unrelated) to the ticket. Thanks!
Comments.UserDisplayName: Jeremy P. Beasley
Tags: <assets><server><mamp>
Title: All images uploading... except JPG files
ThreadText: # All images uploading... except JPG files
  
  (Asked by: username_0 on 2014-12-28)
  
  No idea why but my local install of CraftCMS (in a MAMP environment) won't let me upload JPGs. PNG, GIF, even TIFF works (just for the heck of it). When I select the file in the browser dialog, it closes then shows the loader bar and spinning gif anim. No progress is ever shown and the spinning continues eternally. <http://cl.ly/image/1a2l1W2t1P1x>
  
  * Craft is up to date
  * Uploads on remote install works perfectly
  * Getting this error `net::ERR_EMPTY_RESPONSE` along with these details: <http://cl.ly/image/3D2w1F2l2O1x>
  * Checked my php.ini file and it allows JPG uploads
  
  I realize this may not even be an issue with Craft but a server side issue. I just have no idea how to troubleshoot this. Any help would be much appreciated!
  
  I also checked my phperrors.log file and I got only this which is from back in early Dec and seemingly unrelated.
  
  ```
    [08-Dec-2014 02:47:37 UTC] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 9792 bytes) in /Applications/MAMP/htdocs/sucasa/craft/app/vendor/imagine/imagine/lib/Imagine/Gd/Image.php on line 199
  
  ```
  
  **Tags:** assets, server, mamp
  
  > **Comments:**
  > **username_1**: Check your `craft/storage/runtime/logs` files for any entries that begin with `[error]` or for the existence of a `phperrors.log` file, which will hold any PHP fatal errors.  
  > **username_0**: Added my error (though seemingly unrelated) to the ticket. Thanks!  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_2 on 2015-12-23. Score: 13
  
  I had this same issue and resolved it (at the suggestion of Craft CMS support) by enabling ImageMagick in the php.ini and restarting MAMP PRO.
  
  Per the MAMP PRO 3.0 user guide:
  
  *The ImageMagick PHP module is included by default, but you must enable it inside the php.ini template file. Remove the ‘;’ from the following line.
  ;extension=imagick.so*
  
  > **Comments:**
  > **username_3**: On MAMP PRO, enabling imagick solved the problem.  
  > **username_4**: Thanks - same problem on MAMP PRO 4.1.1 and installing ImageMagick solved the problem. Thanks : )  
  > **username_5**: Enabling Imagick solved this issue for me, also. **In MAMP 4, you can easily enable Imagick/ImageMagick under the "Extensions" checkboxes in the PHP settings.**  
  
  ---
  
  ### Answer by username_6 on 2015-01-28. Score: 8
  
  I had the same issue and solved it. This seems to be an issue with the exif lib. Try to disable mbstring overloading by setting
  
  `mbstring.func_overload = 0`
  
  to your php.ini or
  
  `php_admin_value mbstring.func_overload 0`
  
  in your apache virtual host configuration.
  
  Hope that helps
  
  -username_6
  
  > **Comments:**
  > **username_7**: That worked for me, thanks.  To layout some history.  I upgraded my linux server to a dedicated.  Including mysql 5.7 (mariadb 10.2.8), nginx, centos 7.3, php 7.1.  After all that, I discovered a few odd things like this image upload issue.  So it's something of an odd issue but whatever it is, the solution works.  
  
  ---
  
  ### Answer by username_8 on 2015-08-27. Score: 4
  
  I kept bumping into the same kind of issue. Even when I applied a fix mentioned here or in another topic. After a while the same issue would arise again.
  
  What finally did the trick for me - in MAMP, was to add additional parameters to the host-file.
  
  In MAMP, select the desired host. On the right side choose the Extended tab. Where it says 'Additional parameters for ' add this line:
  
  *AddHandler fastcgi-script .fcgi*
  
  This looks a lot like [the solution mentioned here](https://craftcms.stackexchange.com/questions/4661/fastcgi-error-when-accessing-a-local-development-site-using-mamp-pro), but for some reason it didn't stick.
  
  Restart server (in later versions MAMP restarts itself) and you should be good to go!
  
  
  ---
  
  ### Answer by username_1 on 2014-12-30. Score: 1
  
  From your error, I think the fact that only JPG files are failing is a coincidence.
  
  Perhaps when you were testing the PNG, GIF and TIFF files were all relatively small, but the JPG files were large enough to bump you over the 32MB limit assigned to PHP in your `php.ini` file.
  
  Regardless, if you open up your `php.ini` file, find the `memory_limit` setting, and bump it up to 128MB (or 256MB if you're feeling saucy), the problem should go away.
  
  You might have to restart your web server before that setting takes effect.
  
  > **Comments:**
  > **username_0**: I only wish this were the case... no matter the size .jpg files don't work. I've tried .jpgs at 100kb and 20mb and get the same issue.  
  > **username_1**: Can you reproduce the issue with devMode enabled, zip up your `craft/storage/runtime/logs` folder and send it to support@buildwithcraft.com?  I'll update here with anything we find.  
  
  ---
  
  