You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I think It would be really nice to have the option to define if tiny placeholder should be generated per conversion.
Somehing like:
$this->addMediaConversion('webp')
->fit(Manipulations::FIT_MAX, 2304, 1296)
->nonOptimized()
->format('webp')
->withTinyPlaceholder() // this line here
->withResponsiveImages();
Or even better, per media render. somehing like this:
The use case could be for example:
We have a slider on homepage, which is html markup with images rendered with spatie/laravel-medialibrary that is being processed by javascript after page load, and this causes that sometimes the tiny placeholder isn't replaced with the actual image. So instead of ditching the tiny placeholder functionality completely because of that one slider, I could just enable tiny placeholder per media render.
This should be possible If I understand the source code correctly, right ? Should be pretty easy to implement too. What do you think ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I think It would be really nice to have the option to define if tiny placeholder should be generated per conversion.
Somehing like:
Or even better, per media render. somehing like this:
The use case could be for example:
We have a slider on homepage, which is html markup with images rendered with spatie/laravel-medialibrary that is being processed by javascript after page load, and this causes that sometimes the tiny placeholder isn't replaced with the actual image. So instead of ditching the tiny placeholder functionality completely because of that one slider, I could just enable tiny placeholder per media render.
This should be possible If I understand the source code correctly, right ? Should be pretty easy to implement too. What do you think ?
Beta Was this translation helpful? Give feedback.
All reactions