• hersh84

    (@hersh84)


    I get the following error when I try to upload images in WP while posting an article. I’m not exactly sure what exactly the result of this is, since it appears to upload the images fine even though it errors out. By the time it’s done, it shows “(1)” in the Gallery section.

    Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-jpeg: JPEG library reports unrecoverable error: in /home/****/public_html/wp-admin/includes/image.php on line 147
    
    Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'JPEG' format in /home/****/public_html/wp-admin/includes/image.php on line 147
    
    Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /home/****/public_html/wp-admin/includes/image.php on line 147
    
    Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-jpeg: JPEG library reports unrecoverable error: in /home/****/public_html/wp-admin/includes/image.php on line 147
    
    Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'JPEG' format in /home/****/public_html/wp-admin/includes/image.php on line 147
    
    Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /home/****/public_html/wp-admin/includes/image.php on line 147
    
    Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-jpeg: JPEG library reports unrecoverable error: in /home/****/public_html/wp-admin/includes/image.php on line 147
    
    Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'JPEG' format in /home/****/public_html/wp-admin/includes/image.php on line 147
    
    Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /home/****/public_html/wp-admin/includes/image.php on line 147
    52
Viewing 15 replies - 1 through 15 (of 20 total)
  • Samuel B

    (@samboll)

    Is GD enabled on your site/host?
    https://www.libgd.org/Main_Page

    Thread Starter hersh84

    (@hersh84)

    GD Support enabled
    GD Version bundled (2.0.34 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.2.1
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XPM Support enabled
    XBM Support enabled

    I have the same problem. I think it’s also not allowing me to resize my images in the posts; I can only insert them “full size.”

    Anyone have any ideas?

    I have the same issue since I installed WP 2.7… could this be related?

    Thread Starter hersh84

    (@hersh84)

    I got this to work finally. No longer having this problem. I kinda forgot how I fixed it though lol since it was a month ago. I’ll try to back track and see.

    I’m having the same problem so any updates would be much appreciated!!

    @ Hersh84

    That would be wonderful, I am banging my head against the wall at the moment, so I hope you can remember how you fixed this before I collapse ??

    @hersh84 well…

    I’m having the same issue and am really up against the wall here.

    Anyone have a fix for this yet? I’m using PW 2.7 and am having this same problem.

    Okay, I think I solved it: On my installation it is due to file-size. I discovered that the server seems to stop the crunching process as soon as images get too big (in dimensions and file size). Preshrinking them in Photoshop worked and I was able too upload them.

    Try preshrinking, maybe it works for you as well.

    I started getting the gd-jpeg errors this morning.. after searching all day, adding code, deactivating plug-ins nothing worked… I haven’t had too much time to test it fully, but I noticed that in Photoshop when I saved the images for web, I had “progressive” checked off when I usually do not.. I took one of the images that I was trying to upload with errors and re-saved without “progressive” checked.. and it worked.

    ** I have tested about 5 different photos with my non progressive fix and it worked for every picture that was erroring.. now i just have to re save about 40 more pictures that I accidentally saved that way

    I tried suggested information but nothing worked.
    I then clicked on try the browser uploader instead and that worked. so this appears to be a bug in the flash uploader.

    try updated to latest version… and check your file size

    I’ve been writing about this here:
    https://www.weaver.net/2009/06/problem-errors-when-uploading-images-into-a-post/

    The latest I’ve been able to figure out is in how you GD Library is set up. Try a PNG image and if that works then there a a very good chance the problem lies in the ability of the GD Library to handle JPEGs. The fix appears to either upgrade the GD library and/or allowing GD to accept JPEG files.

    Some PHP info here:
    https://phpbuilder.com/board/showthread.php?t=10303811

    I hope that helps.

    I’ve been using .png images and have not seen a problem.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Error Uploading Images’ is closed to new replies.