<p>If other image formats are working fine, then maybe check that you have Imagick installed and enabled on the server.</p>

<p>Eg.</p>

<pre><code>sudo apt-get install imagemagick php5-imagick
sudo service apache2 reload
</code></pre>

<p>If you're on a shared host then either consult their knowledge base or contact support to check for Imagick availability.</p>

<p>Some servers/hosts only have the GD library installed by default, which isn't so good with PNG files.</p>

CC BY-SA 3.0
2015-08-07T09:54:48.990Z
ImageMagick is installed and running, listed within Craft utils and phpinfo, and works fine within other CMS/Frameworks.
Just rebooted server too without any change...
Tom Carwardine
CC BY-SA 3.0
2015-08-07T09:56:51.540Z
Plus PNGs were being uploaded fine a couple of months ago, the only thing that's changed is the updates to Craft.
Tom Carwardine
CC BY-SA 3.0
2015-08-07T10:05:58.127Z
Just tried commenting out the line as suggested here and it works http://craftcms.stackexchange.com/questions/6862/png-upload-problem-core-hack-issue-in-imagick
Tom Carwardine
CC BY-SA 3.0
2015-08-07T10:07:29.807Z
I'm glad you got it sorted.
Rick
CC BY-SA 3.0
2015-08-07T10:08:16.100Z
Hacking the vendor lib seems a bit extreme… I guess I'll ping support@ and see what they say. Thanks for your comments :)
Tom Carwardine
CC BY-SA 3.0
2015-08-07T17:13:22.143Z
@TomCarwardine Thanks for the update. This definitely sounds like a bug, hopefully P&T can help you sort it out (and fix it for a future release).
Lindsey D
CC BY-SA 3.0
2015-08-07T09:44:55.503Z
2015-08-07T09:44:55.503Z
Rick
<p>I have just discovered that all Craft sites on our server no longer let users upload PNG files and I'm struggling to find the issue / fix.</p>

<p>The craft.log simply says 'Save operation failed' and the JS console mentions 500 internal server error.</p>

<p>I've tried various PNG formats, and weirdly other systems on our server using Imagemagick are running fine.</p>

<p>Anyone had a similar issue / suggestions for debugging?</p>

<assets>
PNG 500 error - Save operation failed
# PNG 500 error - Save operation failed

(Asked by: username_0 on 2015-08-07)

I have just discovered that all Craft sites on our server no longer let users upload PNG files and I'm struggling to find the issue / fix.

The craft.log simply says 'Save operation failed' and the JS console mentions 500 internal server error.

I've tried various PNG formats, and weirdly other systems on our server using Imagemagick are running fine.

Anyone had a similar issue / suggestions for debugging?

**Tags:** assets

---

## 1 answers

### Answer by username_1 on 2015-08-07. Score: 2

If other image formats are working fine, then maybe check that you have Imagick installed and enabled on the server.
Eg.
sudo apt-get install imagemagick php5-imagick
sudo service apache2 reload

If you're on a shared host then either consult their knowledge base or contact support to check for Imagick availability.
Some servers/hosts only have the GD library installed by default, which isn't so good with PNG files.

> **Comments:**
> **username_0**: ImageMagick is installed and running, listed within Craft utils and phpinfo, and works fine within other CMS/Frameworks. Just rebooted server too without any change...  
> **username_0**: Plus PNGs were being uploaded fine a couple of months ago, the only thing that's changed is the updates to Craft.  
> **username_0**: Just tried commenting out the line as suggested here and it works http://craftcms.stackexchange.com/questions/6862/png-upload-problem-core-hack-issue-in-imagick  
> **username_1**: I'm glad you got it sorted.  
> **username_0**: Hacking the vendor lib seems a bit extreme… I guess I'll ping support@ and see what they say. Thanks for your comments :)  
> **username_2**: @TomCarwardine Thanks for the update. This definitely sounds like a bug, hopefully P&T can help you sort it out (and fix it for a future release).  

---

