WordPress.org

Ready to get started?Download WordPress

Forums

Error Uploading Images (21 posts)

  1. Hersh84
    Member
    Posted 5 years ago #

    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
  2. Samuel B
    moderator
    Posted 5 years ago #

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

  3. Hersh84
    Member
    Posted 5 years ago #

    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

  4. mikokagome04
    Member
    Posted 5 years ago #

    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?

  5. jcsimons
    Member
    Posted 5 years ago #

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

  6. Hersh84
    Member
    Posted 5 years ago #

    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.

  7. lsobo
    Member
    Posted 5 years ago #

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

  8. jcsimons
    Member
    Posted 5 years ago #

    @ 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 :-)

  9. Arley McBlain
    Member
    Posted 5 years ago #

    @Hersh84 well...

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

  10. dragolux
    Member
    Posted 5 years ago #

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

  11. janpersiel
    Member
    Posted 5 years ago #

    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.

  12. grosslandguide
    Member
    Posted 5 years ago #

    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

  13. ciuly
    Member
    Posted 5 years ago #

    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.

  14. linkforpr
    Member
    Posted 5 years ago #

    try updated to latest version... and check your file size

  15. austin2k
    Member
    Posted 5 years ago #

    I've been writing about this here:
    http://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:
    http://phpbuilder.com/board/showthread.php?t=10303811

    I hope that helps.

  16. jimcallahan
    Member
    Posted 5 years ago #

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

  17. websitesareus
    Member
    Posted 4 years ago #

    I had a favicon icon in my upload folder, when I removed that the error went away.

  18. philippe723
    Member
    Posted 4 years ago #

    If you are getting errors uploading to your media library with an error description that includes gd-image, try adding the following to your .htaccess file:

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

    It has to do with the way your host's php 5.* handles the resizing and re-rendering of images.

    This fix works like a charm for the issue stated at the top of this thread.

  19. richtotheie
    Member
    Posted 4 years ago #

    for me, my issue was uploading the pictures at too high of a resolution... 800px max works great... but 1000 didn't work at all...

  20. alittleviolent
    Member
    Posted 4 years ago #

    Agree with Richtotheie.

    I had to resize my image to smaller file in order to have no warning pop.

  21. levani01
    Member
    Posted 4 years ago #

    I had the same same problem on WordPress 2.7.1, udgraded to 2.8.6 but still the same!

    Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic