Image size

This topic contains 12 replies, has 3 voices, and was last updated by  anders 4 months, 2 weeks ago.

  • Author
    Posts
  • #530258

    anders
    Full Member
    Post count: 121

    Hi,

    I have placed a gd_post_images shortcode inside inside a GD Archive Item -page, on a site that is using Directory starter theme.
    “image_size” is set to “medium” but the browser always displays the full size image?

    Thanks!

    #530259

    anders
    Full Member
    Post count: 121
    This reply has been marked as private.
    #530267

    Kor
    Moderator
    Post count: 16516

    Hi Anders,

    Thanks for your post. I’ve just checked your Website and it’s working correctly. It’s using a resized version as shown in the attached image.

    Attachments:
    #530291

    anders
    Full Member
    Post count: 121

    Hi Kor,

    Yes, I noticed that in the source also however the browser will ignore this and display the full-size version (try “save image as”), this happens on non-retina small screensize also. I do think that something is not right with the image tag and both “width” and “max-width” are set to full-size image width here.

    Thanks!

    #530327

    Alex Rollin
    Moderator
    Post count: 27815

    You can try clearing your cache. However, the markup is correct and it is showing the right image, as Kor says.

    #530334

    anders
    Full Member
    Post count: 121
    This reply has been marked as private.
    #530365

    Kor
    Moderator
    Post count: 16516

    Hi Anders,

    That’s the srcset added by WP for the responsiveness of image and it shouldn’t effect the loading speed of the Website.

    #530407

    anders
    Full Member
    Post count: 121
    This reply has been marked as private.
    #530462

    Alex Rollin
    Moderator
    Post count: 27815

    The area of the image is over 900 px wide so it seems to be the right image.

    #530524

    anders
    Full Member
    Post count: 121

    Hi Alex,

    But that doesn’t make sense. If I have specified medium for the size here (which is 300px width) this is the dimension that should be displayed.
    Any extra srcset info should be for serving same dimensions for large resolutions screens?
    Could you please ask developers if this is really the intension here?

    Thanks!

    #531055

    anders
    Full Member
    Post count: 121

    I installed a plugin which lets me display current featured image default WordPress way.

    #531210

    Kor
    Moderator
    Post count: 16516

    Hi Anders,

    Try using the code here https://wpgeodirectory.com/support/topic/hero-section-image-problem/#post-530712 and see if it helps.

    #531305

    anders
    Full Member
    Post count: 121

    Thank you Kor,

    Well, I do not wish to remove the srcset. I think this is a great addition as it can serve sharper images to greater screen resolutions .
    What I think is strange is that GeoDirectory sets width and height (both for img and srcset) based on the full-sized image.
    If I have specified “medium” then this is the dimensions I expect to see.
    The larger images (from srcset) will display inside medium dimensions but with greater quality depending on screen resolution (as in my attached example from default WordPress)

    Thanks!

Viewing 13 posts - 1 through 13 (of 13 total)

The topic ‘Image size’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.