• Hello there! We did a test on renaming one of our image files on our website but after renaming it seems like a weird img code is created afterwards. A short sample of it is below. Do you know what caused this? We do used Smush plugins for image compression and such. Thank you!

    <img width="1024" height="640" alt="Contact our team" data-srcset="https://www.lynden.com/wp-content/uploads/lynden-contact-our-team-1024x640.jpg 1024w, https://www.lynden.com/wp-content/uploads/lynden-contact-our-team-300x188.jpg 300w, https://www.lynden.com/wp-content/uploads/lynden-contact-our-team-768x480.jpg 768w, https://www.lynden.com/wp-content/uploads/lynden-contact-our-team.jpg 1440w" data-src="https://www.lynden.com/wp-content/uploads/lynden-contact-our-team-1024x640.jpg" data-sizes="(max-width: 1024px) 100vw, 1024px" class="attachment-large size-large lazyloaded" src="https://www.lynden.com/wp-content/uploads/lynden-contact-our-team-1024x640.jpg" sizes="(max-width: 1024px) 100vw, 1024px" srcset="https://www.lynden.com/wp-content/uploads/lynden-contact-our-team-1024x640.jpg 1024w, https://www.lynden.com/wp-content/uploads/lynden-contact-our-team-300x188.jpg 300w, https://www.lynden.com/wp-content/uploads/lynden-contact-our-team-768x480.jpg 768w, https://www.lynden.com/wp-content/uploads/lynden-contact-our-team.jpg 1440w">

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author crossi72

    (@crossi72)

    Hi @adjohan,
    I don’t get the problem with your HTML code, do you have an example of an image HTML code before and after the renaming? This could help a lot to see what has happened.

    Which plugin (or plugins) are you using? Also the theme could be involved in image management, can you tell me which theme are you using?

    Thank you for reporting.
    C.

    Thread Starter adjohan

    (@adjohan)

    I’m requesting support on this issue through Smush Pro, they might be the plugins that caused this HTML image code issue. The before code is something simple like below

    <img width="563" height="378" alt="Shipping to locations across Canada, including Fort Erie, Ontario, and Vancouver." data-src="https://www.lynden.com/wp-content/uploads/Lynden-Transport.jpg" class="attachment-large size-large lazyloaded" src="https://www.lynden.com/wp-content/uploads/Lynden-Transport.jpg">

    But basically after renaming the file using the plugins it will create the longer html image code that I have mentioned on the previous post.

    Plugins I’m using related to images:
    Smush Pro
    WP Astra theme

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Weird different image size code created after renaming’ is closed to new replies.