WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Image Post Format: Intermediate Image Size Bug (10 posts)

  1. Chip Bennett
    Theme Review Admin
    Posted 1 year ago #

    I think I've found a bug with the Image Post Format UI, but want to confirm before submitting a Trac ticket.

    Steps to reproduce:

    1. New post
    2. Image post format
    3. Select/Upload image
    4. Image library
    5. Select/Highlight existing image
    6. Change image size from default "thumbnail" to "large"
    7. Select Image button (insert into post)

    Result:

    The "Image HTML or URL" outputs the image as thumbnail, rather than as large. For example:

    [caption width="150" id="attachment_771" align="alignnone"]<img src="http://www.example.com/files/2011/07/img_8399.jpg" width="150" height="150" alt="Boat Barco Texture" class="wp-image-771 size-thumbnail" /> Boat BW PB Barco Texture Beautiful Fishing[/caption]

    It appears that the Select/Upload Image modal image size selection is either being ignored or reset.

    Has anyone else run into this issue? Potential bug, or something done wrong on my end?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Ok - using 3.6-beta2-24163. I got as far as:
    1. New post
    2. Image post format
    3. Select/Upload image
    4. Image library
    5. Select/Highlight existing image
    6. Change image size from default "thumbnail" to "large"

    All of the images I try to select from the Media Library are defaulting to "Full size" - not "Thumbnail". If it helps at all, I initially went straight for image-landscape-9001.jpg (which was part of the previous unit test data) but got exactly the same for every image I tried to select.

    Is there anything else I can try that might help?

  3. I also wondered why it doesn't respect what you try to choose from the right. (Alignment, Link To, Size).

    http://wordpress.org/support/topic/image-post-format-link-around-image?replies=3

  4. Chip Bennett
    Theme Review Admin
    Posted 1 year ago #

    All of the images I try to select from the Media Library are defaulting to "Full size" - not "Thumbnail". If it helps at all, I initially went straight for image-landscape-9001.jpg (which was part of the previous unit test data) but got exactly the same for every image I tried to select.

    Is there anything else I can try that might help?

    What happened when you inserted the image? Did it respect your choice, or revert to the default value?

  5. Chip Bennett
    Theme Review Admin
    Posted 1 year ago #

    I just repeated the process with a new/uploaded image, with the same outcome.

  6. Chip Bennett
    Theme Review Admin
    Posted 1 year ago #

    FYI:
    http://core.trac.wordpress.org/ticket/24260

    (I decided to go ahead and open a Trac ticket.)

  7. esmi
    Forum Moderator
    Posted 1 year ago #

    What happened when you inserted the image? Did it respect your choice, or revert to the default value?

    I Never got that far. I initially stopped as soon as my screen didn't jibe with what you'd reported.

    Just had another go. Selected "Thumbnail" followed by "Select Image" and got the full size image dropped into the post! Repeated the process and got exactly the same result. Something is definitely borked somewhere.

  8. Chip Bennett
    Theme Review Admin
    Posted 1 year ago #

    Just had another go. Selected "Thumbnail" followed by "Select Image" and got the full size image dropped into the post! Repeated the process and got exactly the same result. Something is definitely borked somewhere.

    I get the same thing; the full-sized image is inserted in the post; e.g:
    http://design.chipbennett.net/oenology/2010/05/03/fire/

    I'm unsure what that caption code is, or why it is displayed, for the image post format. But, whatever it is, it is incorrect based on user selection.

  9. Chip Bennett
    Theme Review Admin
    Posted 1 year ago #

    From further testing, I am unsure if this is related or not, but it appears to be: the_post_format_image( $attached_size ) is also not rendering the image size specified by $attached_size.

    Calling the_post_format_image( 'custom-image-size'), using a custom image size properly registered via add_image_size() (and regenerated), outputs the image as the thumbnail size.

  10. ahortin
    Member
    Posted 1 year ago #

    I'm experiencing the same issue as both the above. Running 3.6-beta2-24180 and Twenty Thirteen.

    When selecting an image, it seems very inconsistent with what is displayed. Not only is the incorrect image size shown in the Post after you select the actual image, but after saving, the image size changes yet again. Also, no matter what size image you insert (Thumbnail, Medium or Full Size), the image class will be size-medium. (and yep, I've regenerated my images as mentioned in Chip's previous comment)

    Not only that, it seems to completely ignore the selections made in the 'Alignment' and 'Link to' fields. I can understand why it would ignore the 'Link to' field since you specify the URL in the actual Page itself, but in that case, the field shouldn't be selectable (or even visible). It's only going to confuse people when they select a Custom URL in that field only to find that the image doesn't link to it anyway.

    Also, I can understand why the html is displayed (below the image), as people need the option to enter in an image url for linked images, but I really think displaying this after selecting an uploaded image is really going to confuse a lot of users.

Topic Closed

This topic has been closed to new replies.

About this Topic