• suncokret

    (@suncokret)


    I’m the photographer and every image I publish is carefully processed and saved without hard compression. Also I make slightly larger images than needed for future use and also they look better when scaled.

    On the other hand, WP has some nasty compression evident on all images created from the native one.

    I need to “say” to WP to stop using scaled/created images on my posts and just put my own.

    I did use “display full size” when creating a post, but xyz-800×600.jpg keep getting used instead of xyz.jpg. I tried fiddling with various settings but no success.

    TL;DR – How can I tell WP to always use my native images that I put when I create posts and not medium/large/thumbnails?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Although the compression question was answered (thank you @sterndata for the links), the meat of the question is unresolved. I have the same question.

    When I create/edit a post and insert an image, I can select from the various sizes available. I select full-size.

    And when WP displays the post in the browser, it displays a smaller version of the image. I understand this is part of the WP Core. The intention is for the full-size image to scale down via responsiveness. (My theme is WP’s Twenty Seventeen. Some themes will honor image size selected during post edit. But not WP themes.)

    Is there a code that can be dropped into functions.php to honor the image size? Or better, some CSS in the appearance>>customize>>css pane? (Preferring to avoid plugins.)

    When I view the live post in the browser, I can see in the source code (chrome inspect) that the image ‘src’ is recognizing the original full-size image, but there is also the ‘srcset’ that has the other images listed. I imagine this srcset is overriding the src. (I’m not a coder and am unfamiliar with srcset.)

    So if I’m understanding @suncokret question, another way of asking the original question, can we get the live post to honor the image settings made when the post was created/edited?

    -Jon

    Addl info:
    WP and Twenty Seventeen theme is up-to-date.
    When previewing (i.e., clicking the preview button) the post while editing/creating, the original full-size image is displayed. (Ugh!)
    This is about just a regular image, and not Featured Image.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    srcset says to the browser “Here’s a whole bunch of images you can use. Pick the one that best fits the size you need.”

    https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I need to force WP to use native images – how?’ is closed to new replies.