Support » Plugin: ResizeFly » ‘srcset’ disappearing

  • Hey Alex,

    that may be a stupid question, but when the plugin ist activated, the responsive image function with srcset and width disappears from the thumnails and even on smaller viewports always the biggest picture is shown.

    Am I doing or getting something wrong?

    Best regards

    David

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author alpipego

    (@alpipego)

    Hi David,
    Thank you for your bug report. The srcset and the sizes attributes should not be interfered with by the plugin (or any other attributes for that matter).

    Are these getting added by the theme or is there some other plugin involved in adding these attributes. If it is the theme, could you maybe provide me a link to a (free) theme or a copy of it either via slack @alpipego or email hi@resizefly.com?

    For completeness, could you please also tell me what versions of WordPress and ResizeFly you are running?

    Thank you,
    Alex

    • This reply was modified 2 weeks, 5 days ago by alpipego.

    Thank you, Alex, for your prompt reply.

    I tested again with disabling all other plugins except ResizeFly, same issue.

    The theme is: https://themezee.com/de/themes/harrison/
    WP 5.3.2, ResizeFly 3.1.4

    Thank you,
    David

    Plugin Author alpipego

    (@alpipego)

    Unfortunately, I can’t reproduce this. The content I have in an editor is

    
    <img class="alignnone size-large wp-image-76" src="http://wp.version/wp-content/uploads/2018/12/image-1024x538.jpg" alt="" width="1024" height="538">
    

    and the output in the frontend – with Harrison as the active theme and ResizeFly as the only activated plugin – is:

    
    <img class="alignnone size-large wp-image-76" src="http://wp.version/wp-content/uploads/resizefly/2018/12/image-1024x538@1.jpg" alt="" srcset="http://wp.version/wp-content/uploads/resizefly/2018/12/image-1024x538@1.jpg 1024w, http://wp.version/wp-content/uploads/resizefly/2018/12/image-300x158@1.jpg 300w, http://wp.version/wp-content/uploads/resizefly/2018/12/image-768x404@1.jpg 768w, http://wp.version/wp-content/uploads/resizefly/2018/12/image-1536x808@1.jpg 1536w, http://wp.version/wp-content/uploads/resizefly/2018/12/image-2048x1077@1.jpg 2048w" sizes="(max-width: 1024px) 100vw, 1024px" width="1024" height="538">
    

    So when you disable ResizeFly you correctly get the srcset but once it is enabled the attribute is missing?

    Sorry that I can’t provide an easy solution as of now.

    • This reply was modified 2 weeks, 5 days ago by alpipego. Reason: update code tags

    Did you test it also with a featured image resp. post thumbnail?

    Plugin Author alpipego

    (@alpipego)

    I did just now, this also shows up correctly

    
    <img src="http://wp.version/wp-content/uploads/2019/06/candice-picard-1127616-unsplash.jpg" class="attachment-harrison-featured-header-image size-harrison-featured-header-image wp-post-image" alt="" srcset="http://wp.version/wp-content/uploads/2019/06/candice-picard-1127616-unsplash.jpg 5283w, http://wp.version/wp-content/uploads/resizefly/2019/06/candice-picard-1127616-unsplash-300x200@1.jpg 300w, http://wp.version/wp-content/uploads/resizefly/2019/06/candice-picard-1127616-unsplash-768x512@1.jpg 768w, http://wp.version/wp-content/uploads/resizefly/2019/06/candice-picard-1127616-unsplash-1024x683@1.jpg 1024w, http://wp.version/wp-content/uploads/resizefly/2019/06/candice-picard-1127616-unsplash-1568x1045@1.jpg 1568w" sizes="(max-width: 900px) 100vw, 900px" width="900" height="600">
    

    Very weird. This is what I get:

    <img width="1440" height="600" src="https://harrison.test-raum.de/wp-content/uploads/resizefly/2019/12/sud-6-black-libertine-abgefuellt-scaled-1440x600@1.jpg" class="attachment-harrison-featured-header-image size-harrison-featured-header-image wp-post-image" alt="">

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.