• 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 5 replies - 16 through 20 (of 20 total)
  • I had a favicon icon in my upload folder, when I removed that the error went away.

    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.

    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…

    alittleviolent

    (@alittleviolent)

    Agree with Richtotheie.

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

    levani01

    (@levani01)

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

    Any ideas?

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