• Resolved tazotodua

    (@tazotodua)


    I have noticed one problem.
    lets say, you add any small image, like this:

    View post on imgur.com

    into post editor (i use gutenberg, default),
    and resize it to any size.
    WP sets width and height parameters in img tag, like this:
    <img .... width=94 height=77 >

    and on frontend output is good.
    but after activating the imagify, i get:

    <picture ..width="94" height="77">
    <source type="image/webp" srcset="...">
    <img src="..." >
    </picture>

    and thus, the parameters are trimmed from img tag and set to picture element, which is not enough and messes the design.

    i think you should fix that just simply by using “display” parameter, and also, converting the
    <picture width="27"
    to
    <picture style="width:27px; display:inline-block;" ..

    here also visible:
    https://stackoverflow.com/questions/57387816/how-to-force-img-tag-to-respect-parent-picture-parameters

    • This topic was modified 5 years, 7 months ago by tazotodua.
    • This topic was modified 5 years, 7 months ago by tazotodua.
    • This topic was modified 5 years, 7 months ago by tazotodua.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tazotodua

    (@tazotodua)

    As i think the plugin should not trim the parameters (width, height, or other) from img element.

    Thread Starter tazotodua

    (@tazotodua)

    would be nice if there was individual option to enable/disable the compressed image showing (with picture tag) on specific pages/posts. so, if chosen that option, then that particular page should show the original content (without replaced <picture> tag)

    Plugin Author WP Media

    (@wp_media)

    Hi @tazotodua

    Thanks a lot for your feedback!

    We will definitely take a closer look at this and consider the best possible solution.

    Wish you all the best!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Has css issues’ is closed to new replies.