<p>That error will occur if the fileinfo extension or imagick (ImageMagick) extension are not configured with a comprehensive list of file MIME types (the "magic file", as they refer to it, I think), or the images you're uploading aren't really images despite their extensions.</p>

<p>Regarding GIFs - you must use ImageMagick if you want to upload animated GIFs, as it's not possible for Craft to reconstruct an animated gif using the GD library.</p>

CC BY-SA 3.0
2016-09-05T09:30:54.913Z
Thanks. Spend the week trying like everything on my ubuntu server. Updating my broken ImageMagick extension fixed everything.
william
CC BY-SA 3.0
2016-11-17T23:41:38.657Z
I built an Ubuntu 14.04.5 LTS server with PHP7 that has ImageMagick installed and yet an empty magic file as mentioned ages ago [in this Ubuntu bug report](https://answers.launchpad.net/ubuntu/+question/228062). Haven't resolved yet, but I figure it's worth a clue if someone else winds up in the same predicament.
Matt Stein
CC BY-SA 3.0
2016-09-05T09:28:36.380Z
2016-09-05T12:58:20.813Z
2016-09-05T12:58:20.813Z
Brandon Kelly
<p>I've installed the latest ImageMagick on my ubuntu 14 server. If I force imageDriver to use 'imagick', I can only upload Gif images. And if I force it to use GD, I can upload all images but only static gif images.</p>

<p><a href="https://i.sstatic.net/639DA.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/639DA.jpg" alt="enter image description here"></a></p>

<p>The images are not changed in any programs.</p>

<p>It's important for me to have both options. Any ideas what this issues can be? I use php 7.0 </p>

<pre><code>Upload failed for background.jpg. The error message was: “Error uploading the file: The file “/var/www/html/craftcms/craft/storage/runtime/temp/assets57cb93709cf445.74590720.jpg” does not appear to be an image.”
</code></pre>

CC BY-SA 3.0
2016-09-04T13:55:50.640Z
Go to /admin/utils/phpinfo and search for "fileinfo". Do you see any references to that?
Brandon Kelly
CC BY-SA 3.0
2016-09-04T16:51:54.293Z
Yes I see. http://share.engbjerg.dk/PHuqsGTuCK.jpg - It't uploading gif image but only with ONE loop. :S
william
CC BY-SA 4.0
2022-06-28T09:28:06.593Z
In case it helps others: I got this error with a client trying to upload huge animated gifs (3000 x 3750px). I guess the imagemagick resources were being exhausted. It was resolved by asking them to upload a smaller version (half the dimensions).
Josh Harrison
<assets><control-panel><bug>
The file does not appear to be an image. Bug?
# The file does not appear to be an image. Bug?

(Asked by: username_0 on 2016-09-04)

I've installed the latest ImageMagick on my ubuntu 14 server. If I force imageDriver to use 'imagick', I can only upload Gif images. And if I force it to use GD, I can upload all images but only static gif images.

The images are not changed in any programs.
It's important for me to have both options. Any ideas what this issues can be? I use php 7.0 
Upload failed for background.jpg. The error message was: “Error uploading the file: The file “/var/www/html/craftcms/craft/storage/runtime/temp/assets57cb93709cf445.74590720.jpg” does not appear to be an image.”

**Tags:** assets, control-panel, bug

> **Comments:**
> **username_1**: Go to /admin/utils/phpinfo and search for "fileinfo". Do you see any references to that?  
> **username_0**: Yes I see. http://share.engbjerg.dk/PHuqsGTuCK.jpg - It't uploading gif image but only with ONE loop. :S  
> **username_2**: In case it helps others: I got this error with a client trying to upload huge animated gifs (3000 x 3750px). I guess the imagemagick resources were being exhausted. It was resolved by asking them to upload a smaller version (half the dimensions).  

---

## 1 answers

### Answer by username_1 on 2016-09-05. Score: 4 | Accepted answer

That error will occur if the fileinfo extension or imagick (ImageMagick) extension are not configured with a comprehensive list of file MIME types (the "magic file", as they refer to it, I think), or the images you're uploading aren't really images despite their extensions.

Regarding GIFs - you must use ImageMagick if you want to upload animated GIFs, as it's not possible for Craft to reconstruct an animated gif using the GD library.

> **Comments:**
> **username_0**: Thanks. Spend the week trying like everything on my ubuntu server. Updating my broken ImageMagick extension fixed everything.  
> **username_3**: I built an Ubuntu 14.04.5 LTS server with PHP7 that has ImageMagick installed and yet an empty magic file as mentioned ages ago [in this Ubuntu bug report](https://answers.launchpad.net/ubuntu/+question/228062). Haven't resolved yet, but I figure it's worth a clue if someone else winds up in the same predicament.  

---

