• Resolved gfriend70

    (@gfriend70)


    Hi Guys, Imsanity plugin was working fine but client is now reporting they are unable to upload any images due to the error below. I have checked the images and they are .jpg and I can view them all fine, but I am also unable to upload them to WP unless I disable Imsanity plugin.

    The error we get on upload is:

    Imsanity was unable to resize this image for the following reason: File is not an image.. If you continue to see this error message, you may need to install missing server components. If you think you have discovered a bug, please report it on the Imsanity support forum: https://www.ads-software.com/support/plugin/imsanity

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter gfriend70

    (@gfriend70)

    Hi Guys, any answer for this yet please?

    Tim

    (@timothyabgreen)

    Hi

    The author kindly answered this question in the FAQs section of the plugin Homepage:

    https://en-gb.www.ads-software.com/plugins/imsanity/

    Hope that helps.

    I’m getting the same error on an installation where it was working fine. I am running Imsanity 2.4.2 on PHP 7.2.

    GD module is installed:

    GD Support enabled
    GD headers Version 2.1.1
    GD library Version 2.1.1
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.3.11
    GIF Read Support enabled
    GIF Create Support enabled
    JPEG Support enabled
    libJPEG Version 6b
    PNG Support enabled
    libPNG Version 1.2.49
    WBMP Support enabled
    XPM Support enabled
    libXpm Version 30411
    XBM Support enabled
    WebP Support enabled

    The PHP memory_limit is 512M, which should be plenty.

    If I disable Imsanity and upload an image, the standard WP crunch process generating thumbnails etc. works fine, so it does seem to be a problem with the plugin.

    Any ideas?

    Plugin Author nosilver4u

    (@nosilver4u)

    “file is not an image” is the message returned by WordPress, Imsanity doesn’t do the resizing itself, but uses the upstream resize method for GD/Imagick.

    First, double-check if you have Imagick installed, if you do, then GD is most likely not being used, and there could be an Imagick (ImageMagick) misconfiguration.

    That said, it’s entirely possible to be a PHP memory issue, even with 512MB allocated. Some images take well over 512MB to process (we have 8GB of memory on our EWWW IO servers for just that reason), and the fact that the thumbnails process properly without Imsanity active is often a symptom of a memory issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error: File is not an image’ is closed to new replies.