WordPress.org

Ready to get started?Download WordPress

Forums

Image upload issues - Size reported as 0x0 (26 posts)

  1. David Miller
    Member
    Posted 3 years ago #

    When I upload any image of any size to my wordpress installation the image uploads fine, but the size is reported as 0x0 and has only one option of inserting it as a full sized image!

    Further inspection of this issue has lead me to believe that it lays with wordpress not inserting the correct (if any) meta data for the attachment into the database.

    As you can see in the image below, the meta data is present and this image shows all options of inserting the image in the post at all sizes specified in the WordPress media settings panel.

    http://www.millerswebsite.co.uk/images/meta%20data.jpg

    But as you can clearly see from the image below, when the meta data is missing it shows you can't post the image at any size except full which is stated as 0x0px - Clearly something is wrong!

    http://www.millerswebsite.co.uk/images/no%20size.jpg

    Many people have had and are still having this issue since 2.5. There are quite a few forum threads relating to it with not a single word from anyone from WordPress.

    Several tickets have been submitted to the WordPress Trac system with the issues going unresolved. This is a major problem and many people have reported it, yet nothing seems to have been done.

    Sources :

    1. http://core.trac.wordpress.org/ticket/12532
    2. http://wordpress.org/support/topic/cant-adjust-media-file-size-since-upgrading-to-27
    3. http://wordpress.org/support/topic/images-upload-fine-but-wp-shows-0x0-size
    4. http://wordpress.org/support/topic/add-image-size-only-allows-fullsize-with-0x0-dimensions
    5. http://wordpress.org/support/topic/image-upload-in-wp-28-with-translation

    If any solution exists to this problem, please let me know, I have been searching for weeks now to no avail. When I talk about solutions, I do not mean using plugins to "regenerate thumbnails"! Yes I know this works, but it does not solve the problem as its only a temporary fix. Plus it needs to regenerate the images every time you upload a new image.

    Side note :
    I have tried a completely new installation of WordPress with and with out plugins on a completely different database. I have uploaded and re-uploaded the WordPress files also.

    A phpinfo() can be seen here : http://www.millerswebsite.co.uk/info.php

  2. David Miller
    Member
    Posted 3 years ago #

    2 Days sets this post back almost 30 pages? Come on guys. Anyone with any information related to this please post something.

  3. vernon.cuthbert
    Member
    Posted 3 years ago #

    I think your problem is that the image file created on importing it to wordpress is too large. I too had this problem until I used another package to reduce the file size.

    Many digital cameras produce an image that for most web uses is too detailed. Even reducing the image size I often find that they need further constraining!

    I am happy to be contradicted!

  4. David Miller
    Member
    Posted 3 years ago #

    This is the type of image I am uploading. I took it on my Nikon D3100 and compressed to 80% @ 960x768 which makes it 83KB so its not exceeding any upload limits and I am still having problems.

    http://www.millerswebsite.co.uk/images/wordpress/DSC_2165.jpg

    My host claims it is not their fault and they have recompiled apache and php for me, the php memory limit is also set to 128mb. I just wish this was fixed. I am itching to finish writing my posts.

  5. David Miller
    Member
    Posted 3 years ago #

    This is the type of image I am uploading. I took it on my Nikon D3100 and compressed to 80% @ 960x768 which makes it 83KB so its not exceeding any upload limits and I am still having problems.

    http://www.millerswebsite.co.uk/images/wordpress/DSC_2165.jpg

    My host claims it is not their fault and they have recompiled apache and php for me, the php memory limit is also set to 128mb. I just wish this was fixed. I am itching to finish writing my posts.

  6. vernon.cuthbert
    Member
    Posted 3 years ago #

    I take pictures on a Nikon D3000 and compress them using Irfan viewer to 40% compression to 197kb at 1549x1037 and that works fine. Sorry not to have helped :-(

  7. David Miller
    Member
    Posted 3 years ago #

    do you use view nx 2 to get them from the camera?

  8. vernon.cuthbert
    Member
    Posted 3 years ago #

    No, just the MSwindows standard import from a camera.

  9. GATEKeeper
    Member
    Posted 3 years ago #

    Something is definitely wrong in WordPress, or it seems like it to me. I'm getting random issues with some images as well. Not all images, just a few here and there - but when they upload the size is set to 0x0. If you look at the preview, the image is fine, and the large version is there, but you can't edit the image in WordPress and posting it comes out full size.

    How can we test to explain the issue?

  10. David Miller
    Member
    Posted 3 years ago #

    Is there any way we can get a WordPress rep to actually look into this issue and try and help us? I have tried contacting the wordpress.com team, but all they have done is refer me to the forums on here.

  11. koager
    Member
    Posted 3 years ago #

    I have this issue, too. I've just grabbed a random smallish image off of Google Images to test and the same error happens for me. Not only does the 0x0 error occur but the problem has escalated that even though the html says the image has been inserted into the post, nothing shows up.

  12. esmi
    Forum Moderator
    Posted 3 years ago #

    Is there any way we can get a WordPress rep

    There's no such creature as a "WordPress rep". Welcome to open source software where nearly everyone is a volunteer.

    Image/Media Uploader problems
    http://wordpress.org/support/topic/164999

  13. GATEKeeper
    Member
    Posted 3 years ago #

    Good news, I've found the specific reason this is happening.

    The answer is that if you're uploading images with metadata, and that data includes curly quotes, WordPress screws up and can't read the size of the graphic because it's getting stuck on those non-web friendly characters.

    A good example: I had a press photo from Warner Bros. for a new movie, which had the metadata description that included two sets of curly quotes. I went in through Bridge, changed those curly quotes to regular ones and re-uploaded the image and it worked fine.

    If you can't fix the metadata, the other solution is to resave the file with a program that doesn't save the metadata. That said, it would be nice if WordPress had a built-in solution.

  14. kmessinger
    Volunteer Moderator
    Posted 3 years ago #

    Meta data should never include curley quotes. Some common punctuation marks in English (curley qotes and dashes, particularly) are encoded differently on different computer systems. WordPress is used world wide with many different character sets and encoding. It would be nice to to worry about it true. Glad you solved your problem.

  15. deezlee
    Member
    Posted 3 years ago #

    i had an image that was causing the same problem today. i looked at the metadata for a bunch of images and the problem image had no metadata for the image depth and color mode. i made another jpg from the psd in imageready and it worked fine and had the metadata. is there any way to make wordpress accept images that are missing that data? my client whose site it is won't be able to troubleshoot images like this.
    thanks in advance,
    noah d

  16. patbunyard
    Member
    Posted 2 years ago #

    Same problem and after struggling for two hours, trying all the suggestions, I instead selected "Add an image". The two photos what had uploaded 0 x 0 at least 10 times trying everything else, uploaded perfectly. I was able to choose thumbnail and they show correctly in my gallery. Seems too simple but at least this finally worked for me.

  17. Doug-O
    Member
    Posted 2 years ago #

    Same issue, no resolution, but I'm calling yahoo hosting as they have had database connection issues all week that they claim are 'resolved.'

  18. Doug-O
    Member
    Posted 2 years ago #

    I am inserting this in every open query on this topic, as it actually solved the problem. This happens because one of the databases gets locked. You have to use PHPMyAdmin tool (available from your host most likely) to review the status of all the databases in use for your site. Select the ‘wordpressblog’ (or whatever set of databases seem appropriate) from the list at left. This brings up all the databases running on your site. The particular database that caused this problem was wp_postmeta - the status in the PHPMyAdmin window was ‘in use,’ and as our databases are small this should never be the case when you can look at them and see them in use - they should be just sitting there. Here it was locked. In the PHP MYAdmin tool, check the particular database that’s in use, then on the drop down box at the bottom select ‘repair table.’ This instantly solved my problem. Thanks to yahoo support rep!

  19. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    Doug-O stop pasting the same stuff into old topics.

  20. Doug-O
    Member
    Posted 2 years ago #

    Some of these threads do not show that any resolution has been achieved for this problem, and there is more than one.. If I find information that I believe helps others, and that information is not included in that thread, then I will post it. You are of course entitled to your opinion, but my posts are constructive.

  21. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    you appear to be searching for old posts & posting the same information again & again. Please stop doing that it does not help.

  22. aviaxis
    Member
    Posted 2 years ago #

    I have this issue and an other one. All images lost their alt text... and it does not get saved even if i try to save it again... All galleries stoped functioning, I think because image size is 0x0 .... wtf?!?!

  23. Nick Taylor
    Member
    Posted 2 years ago #

    Well... just so Doug-O doesn't feel too chastised, his solution did in fact help me.

  24. aviaxis
    Member
    Posted 2 years ago #

    I found my problem. I installed the last wordpress version and it crashed the table wp_postmeta. I talked to my hosting providers and they repaired it. Now the pictures have the right sizes...

  25. cehwitham
    Member
    Posted 2 years ago #

    As Nick said, Dou-O's solution worked. Repairing the wp_postmeta table through PHPMyAdmin worked treat.

    Also, to save you reuploading all your images, try using the Regenerate Thumbnails plugin.

  26. whitehallsd
    Member
    Posted 2 years ago #

    Thank you Doug-O! I give you great credit for going back and posting to all of these old threads as I wouldn't have fixed it without your help!!! Cubecolour...he as trying to be helpful and was very successful!

Topic Closed

This topic has been closed to new replies.

About this Topic