• Resolved liquidcool76

    (@liquidcool76)


    Hi,

    I have just recently (the last couple of days) installed and set up my own local instance of wordpress to host my own site.

    Everything has worked flawlessly till I started putting posts in with pictures. Every time I try and upload a JPG file it errors out with HTTP_Error.

    I have trawled all over the interweb trying all sort of things and nothing seems to work. This is what I have done so far:
    installed the Default to GD plugin
    uninstalled ImageMagick and imagick
    Reinstalled (compiled) the NEW version of both ImageMagick and imagick
    Tried numerous ImagickMagick Plugins
    Increased the memory on php settings for uploading and file sizes

    Nothing seems to work.

    I am running this on Centos 7 with php 5.4.16

    I have plenty of space on the server so there is no issue with lack of space. And the file sizes I am uploading are only about 150k each. So not large at all. PNG files work fine, but would really like to get JPG’s working also.

    Could someone please help me out on this.

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • What does phpinfo reveal about the imagick module installation?

    Thread Starter liquidcool76

    (@liquidcool76)

    imagick module enabled
    imagick module version 3.2.0RC1
    imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
    ImageMagick version ImageMagick 6.9.0-5 Q16 x86_64 2015-02-14 http://www.imagemagick.org
    ImageMagick copyright Copyright (C) 1999-2015 ImageMagick Studio LLC
    ImageMagick release date 2015-02-14
    ImageMagick number of supported formats: 219
    ImageMagick supported formats 3FR, A, AAI, AI, ART, ARW, AVI, AVS, B, BGR, BGRA, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FITS, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCREENSHOT, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV

    Looks pretty normal. Have you noticed any issue uploading any other file types, or just the jpg’s?

    installed the Default to GD plugin

    yum install php-gd was successful?

    [edit] I should have probably asked if there is any GD output listed in phpinfo.

    Thread Starter liquidcool76

    (@liquidcool76)

    Yip, php-gd installed correctly :

    GD Support enabled
    GD Version bundled (2.1.0 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.4.11
    T1Lib Support enabled
    GIF Read Support enabled
    GIF Create Support enabled
    JPEG Support enabled
    libJPEG Version 6b
    PNG Support enabled
    libPNG Version 1.5.13
    WBMP Support enabled
    XPM Support enabled
    libXpm Version 30411
    XBM Support enabled

    I have subsequently deactivated Default to GD as it does not work either.

    To add to this, The files do show up in the uploads directory on the server. Just that they never appear on the dashboard.

    Can you explain exactly what that means? That you’ve uninstalled the php-gd extension, or that you’ve manipulated a configuration file somewhere? What process are you describing when you say “I have subsequently deactivated Default to GD as it does not work either”?

    The GD library php extension usually works quite well right out of the box. I suspect you might have something else going on.

    As you don’t seem to have any issue with .png formats, can you tell me if you’ve tried more than one image using the .jpg extension, and if so, are they all from the same source on your local computer, or if they were created using the same application (any common denominator that might indicate possible source file corruption), or are you attempting to upload them to your library from a remote source/URL?

    Every time I try and upload a JPG file it errors out with HTTP_Error.

    Can you paste the entire error message please?

    Thread Starter liquidcool76

    (@liquidcool76)

    What I meant was I de-activated the Dafult to GD plugin that you can use, that makes the wordpress site prefer GD over ImageMagick.

    I did what you said and tried a different jpg file and it worked. The jpg’s that did not work were made using the snipping tool in Windows.

    The error that comes up is “HTTP error.” That’s all, nothing else.

    Strange that the same jpg’s work on blogger.

    Will have to convert all of them to png to get them on then.

    Thanks for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can't upload JPG files. PNG OK’ is closed to new replies.