WordPress.org

Ready to get started?Download WordPress

Forums

Thumbnail image not used when inserting image in post (22 posts)

  1. ARubinstein
    Member
    Posted 6 years ago #

    Selecting an image in the uploader and inserting in a post always sets the src link pointing to the original size image file, not the thumbnail or medium resolution file as selected via the radio button:

    <img class="alignnone size-thumbnail wp-image-5" title="Ein Bild" src="http://<MY_WEBSITE>/wp-content/uploads/2008/04/einbild.jpg" alt="" />

    However, the class information shows that thumbnail size was correctly selected. The Thumbnail file does exist (named "einbild-150x150.jpg"), and there have been no errors during the upload/resize process before.

    I already made a new, completely fresh wp 2.5 install with default theme to test this, but the problem remains. Even setting directory and file permissions to 777 for wp-content and below does not change this behavior.

    Anybody else here with this problem - or a solution?

  2. hakre
    Member
    Posted 6 years ago #

    Hi ARubinstein,

    I do not even know if thumbnails will be created if you choosed a remote file. Is the file itself transfered to your server or was it already on your server?

    Did wordpress told you something about crunching?

    A quick solution might be to download the image to your computer and then use the uploader to load it up to wordpress.

  3. ARubinstein
    Member
    Posted 6 years ago #

    Hi hakre,

    as I mentioned:

    "The Thumbnail file does exist (named "einbild-150x150.jpg"), and there have been no errors during the upload/resize process before."

    Upload worked, chrunching occured, no errors, file existing. Even manually appending the -150x150 file name extension to the src parameter in HTML view works and delivers the thumbnail fine. It´s only that the uploader applet does NOT insert the correct code.

  4. hakre
    Member
    Posted 6 years ago #

    Well, the only thing I know when this happens is when the option is selected to do so. But this is with normal operations.

    With the new image uploader I'm facing update problems a lot resulting in javascript errors as well. Even I thought each one can be solved with disanling firefox cache, yesterday it didn't. Today I do not get any more javascript warnings and the editor works as expected (yesterday I was not able to insert any image, the "popup" went to white and sayed open and the image was not inserted). Maybe you face a javscript error as well?

    Another thing I ran over: If the filename contains non-ascii characters I run into problems as well.

  5. ARubinstein
    Member
    Posted 6 years ago #

    I have no Javascript errors or warnings of any kind (and never had), the uploader opens everytime and is and has been fully functional in every case.
    I tried all combinations of size and alignment options, however, the choice for embedding thumbnail or medium size is consistently ignored, no size extension referencing a thumb or medium size file is put in to the file name of the src paramater.

  6. hakre
    Member
    Posted 6 years ago #

    Did you upgraded your Blog?

  7. ARubinstein
    Member
    Posted 6 years ago #

    pls read my first posting ;-)

  8. hakre
    Member
    Posted 6 years ago #

    Sorry, this is really quirky. Let's summarize:

    • WordPress: ok Version 2.5 is known to be working
    • Theme: ok Default Theme of Version 2.5
    • Filename: ok only ascii chars
    • Browser: UNKNOWN - Which Webbrowser are you using?
    • Pluginstatus: UNKWNOWN - Does your vanilla Setup uses any additional plugins?
  9. ARubinstein
    Member
    Posted 6 years ago #

    WordPress: Fresh Install 2.5

    Browser: I checked with IE 7 and Firefox 2.0.0.9, no difference.

    Plugins: Only the "Uploaded File Permissions" Plugin to account for permission problems with german hosting company DomainFactory. Need this to have file permissions on uploads correctly set after upload. This has the effect of the image upload working now and media library and uploader applet showing the images without errors after upload. NO other plugins.

    File and directory permissions problems I think are out of question now since everything is working in the visual editor and on the normal site view if I manually enter the "-150x150" in the filname, and I can manage the image file in media library.

    Since this is a pure testing environment, I´ll happily give you the admin password via private eMail if you have time to take a look and try for yourself...

    Might be something simple that I overlook. Not so many people seem to have this problem at all, or there would be flaming all over the place ;-). Or they all still working on getting the upload itself to work...

  10. ARubinstein
    Member
    Posted 6 years ago #

    Something else that might be a hint to the problem:

    When deleting images via media library, only the original size image is deleted, the thumbnail and medium res files generated in the uploading process are left behind and NOT deleted.

    Is this the intended behavior or a hint that somehow WP 2.5 does NOT KNOW about the thumbnails...? Should these files be referenced somewhere in the database? I could not find a trace of that by looking through the posts table.

  11. ARubinstein
    Member
    Posted 6 years ago #

    This is still an open topic for me... no one else out there experiencing this...? I used up my imagination of possible error locations for now.

  12. hpr
    Member
    Posted 6 years ago #

    I am having a similar problem but the Flash uploader just randomly stopped creating the 150x150 thumbnail images. It is quite annoying and I cant find a solution to the problem :/

  13. ARubinstein
    Member
    Posted 6 years ago #

    Meanwhile, I gave up on wp team fixing all the errors with the uploader in short time - this error I have seems to be basically ignored so far here - and downloaded the flexible upload plugin (http://wordpress.org/extend/plugins/flexible-upload).

    With this plugin(rather similiar in design to the original wp uploader, but with much better functionality, both may have the same development roots ?), my problems are TOTALLY GONE without any change in my hosting environment - and this I think pretty much PROVES that the code delivered with wp is the cause for the problem.

  14. nicknormal
    Member
    Posted 6 years ago #

    ARubinstein and others,

    I migrated to flexible upload because I read it was more... flexible!

    It was, for a while. Then suddenly this week the 'thumbnail' option in the applet, identical to the problem ARubinstein ran into with the standard WP upload applet, quit working!! I can't figure it out.

    It was the last plugin I activated, and haven't done any major development since. It just quit making links with '.thumbnail' attached. Yes, the thumbnail itself is on the server, but the link-generation quit!

    There is obviously some bug somewhere, regarding this function. I'm sure it will be fixed one day, but unless we know exactly what is causing the problem... ?

  15. kreatyve
    Member
    Posted 6 years ago #

    Same problem and it's really annoying!!!!
    I have 2.5.1 version and ther's no way to have the thumbs....
    Installed the flexible upload plugin as suggested from ARubinstein but...I'm not able to insert more images as a gallery like the original media upload did... :-(
    So disappointed about this version....... now.. I can't put online my blog!

  16. Anonymous
    Unregistered
    Posted 6 years ago #

    Same problem. Had this in 2.5, tonight I upgraded to 2.6 hoping the problem would be fixed... and still isn't.

    HELP! Why isn't there any response to this issue????

  17. hotkee
    Member
    Posted 6 years ago #

    I noticed myself that there can be cases when the thumbnails are not created - this occurred for me on two images I uploaded.

    To fix this,

    1. I downloaded a copy of the image first.

    2. The in wordpress I removed the uploaded image using the image uploader.

    3. I opened the orignal image on my pc in a picture editor and saved it (did not make any changes to it).

    4. I reuploaded the image to wp and this time it created the thumbnails.

    So my suspcions is that there are some images for whatever reason fail in wordpress.

    The other problem in Wp 2.6 is that in no longer creates thumbnails as with .thumbnail in the filename - think it did the same in wp 2.5.1

    So when you link images it will no longer appending size of actual thumbnail to the end of the thumnail images.

    You also have to be careful if you are using custom image folders - you must specify the url location of your custom folder in the settings.

    In fact the problem for me was pretty annoying as I had my own little random image gallery plugin which completely broke when I moved to wp 2.5.1 and 2.6 in particular - because it could not pick up thumbnails any longer.

  18. Sheiglagh
    Member
    Posted 6 years ago #

    The problem might be in the IMAGE ITSELF. I'm not a photoshop guru, but one of my photographers explained to me that even if ONE marker is messed up when manipulating the image (before you upload), it will not show on the web.

    Let's try the most obvious first- CMYK images do not show, only RGB. Check your image if it is in the CMYK format or in RGB. CMYK is standard format for the print industry, and a lot of big companies still send their images in CMYK format so that it can be used both online and print without a lot of hassle.

    Second, try to make another copy of the image, as in when in photoshop or any image editor actually save a copy then resave. Hopefully, it will solve the problem.

    Hope this helps.

  19. Anonymous
    Unregistered
    Posted 6 years ago #

    Here's a fix for the podpress I found on their site

    podpress.php

    Beginning at line 423:

    function podPress_wp_get_attachment_metadata($data, $id='') {
    if(is_feed()) {
    return '';
    } else {
    return $file;
    }
    }

    Change to:

    function podPress_wp_get_attachment_metadata($data, $id='') {
    if(is_feed()) {
    return '';
    } else {
    return $data;
    }
    }

  20. lclarkberg
    Member
    Posted 6 years ago #

    I had the same problem with a certain image being placed on a page at full-resolution even though the thumbnail appeared to exist. Other images worked fine. I solved the problem by using Photoshop's Save for Web function to save a copy of the image. I'm not sure what about the original image was messing things up. (It wasn't a CMYK for example.) It was an ordinary jpg as far as I could tell.

  21. GoldenChaos
    Member
    Posted 6 years ago #

    The podpress fix fixed the issue. I'm VERY happy to see my thumbnails finally return.

  22. baga
    Member
    Posted 5 years ago #

    I have the same problem, the thumbnails are created but they are not shown up in the gallery, I run WordPress 2.6.2, it works fine on localhost, not on the remote server, it seems that the -150x150 part of the code is missing in the html.
    Any ideas to solve this bug?

Topic Closed

This topic has been closed to new replies.

About this Topic