-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src-attribute not applying and WebP support? #27
Comments
Thank you for your bug report. Can you see if the problem is fixed in 2.0.2? Support for WebP would be a great addition but I currently don't have the ressources to implement it myself. I opened an issue in case someone wants to submit a PR: #28 |
Thanks a lot! I’ll give it a test later on tonight. I’m afraid I’m still fairly new to October and php, but perhaps this php module might help? |
Hey @tobias-kuendig, so I've just updated the plugin, and unfortunately it doesn't seem to have made a difference. I tried resetting the settings to default and re-adding them and also adding new images, neither of which showed the updated |
Is it possible that the image is rather large? If you look at your |
Hmm it doesn't appear to be, to test, I uploaded a new image at 100x100 with no luck. The latest relevant thing I can find in the log file is:
|
There seems to be a problem when parsing the html. Could you provide an actual html snippet from your browser's "View page source" page (not from the dev tools!)? The |
Sure thing, Here's one using the swatch above, in this one the <header class="header__slideshow--wrapper">
<div class="portfolio-slideshow" data-portfolio-slideshow>
<div class="slideshow__item">
<div class="content">
<img src="//localhost:3000/storage/app/uploads/public/5c3/50d/d1e/5c350dd1e1b2f154077594.png" class="slideshow__image lazyload"
alt="" data-srcset="//localhost:3000/storage/app/uploads/public/5c3/50d/d1e/5c350dd1e1b2f154077594.png 100w"
sizes="(max-width: 100px) 100vw, 100px">
</div>
</div>
</div>
</header> And here's another that isn't working at all, plus other slides that also aren't working. <header class="header__slideshow--wrapper">
<div class="portfolio-slideshow" data-portfolio-slideshow>
<div class="slideshow__item">
<div class="content">
<img src="//localhost:3000/storage/app/uploads/public/5c3/27e/938/5c327e938c636163248045.jpg" class="slideshow__image" alt="">
</div>
</div>
<div class="slideshow__item">
<div class="content">
<img src="//localhost:3000/storage/app/uploads/public/5c3/27e/979/5c327e97956fe054857173.jpg" class="slideshow__image" alt="">
</div>
</div>
<div class="slideshow__item">
<div class="content">
<img src="//localhost:3000/storage/app/uploads/public/5c3/27e/982/5c327e98248c3973017768.jpg" class="slideshow__image" alt="">
</div>
</div>
<div class="slideshow__item">
<div class="content">
<img src="//localhost:3000/storage/app/uploads/public/5c3/27e/989/5c327e989c651342566482.jpg" class="slideshow__image" alt="">
</div>
</div>
<div class="slideshow__item">
<div class="content">
<img src="//localhost:3000/storage/app/uploads/public/5c3/27e/98d/5c327e98d6ae6387809633.jpg" class="slideshow__image" alt="">
</div>
</div>
</div>
</header> |
Thank you for your patience. Can you test this with version 2.0.3? It looks like the relative protocol URLs generated by October are the problem. |
Hmmm really sorry, you're going to hate me. Doesn't seem like it made much difference, although its producing a new log error.
|
After filling in the
src-attribute
field, it doesn't seem to be working on the frontend.src-attribute
is working fine.Also, would it be possible to have the plugin generate the images in WebP format as well?
The text was updated successfully, but these errors were encountered: