maxisam / ngx-progressive-image-loader Goto Github PK
View Code? Open in Web Editor NEWlazy load img/picture, prevent reflow and seo friendly.
License: MIT License
lazy load img/picture, prevent reflow and seo friendly.
License: MIT License
hi maxisam,I run with https://stackblitz.com/github/maxisam/ngx-progressive-image-loader
but I got an error page
error detail:
Error in src/styles/styles.scss (6:10)
wrong number of arguments (2 for 1) for `progressive-image-loader'
can you offer some help,thanks!
Plugin is awesome!
There is however an issue with the ngx-window-token plugin you depend upon. It only works with the 1.0.2 version and not the newest, could you maybe update your code to make it work with the newest version?
Thank you, and again very cool plugin
Hello again 😄!
I have this error while serving the app built with Angular Universal:
Error: StaticInjectorError(AppServerModule)[ProgressiveImageDirective -> InjectionToken WindowToken]:
StaticInjectorError(Platform: core)[ProgressiveImageDirective -> InjectionToken WindowToken]:
NullInjectorError: No provider for InjectionToken WindowToken!
any ideas?? I'm importing the last version in beta (7).
Please try v5.0.0-beta01
I try to use progressive images to load thumbnails which can be at any aspect ratio. Before using ngx-progressive-image-loader I was able to implement this successfully with Flexbox.
` .thumbnailContainer {
flex: 2 ;
overflow: auto;
position: relative;
}
img {
position: absolute;
top: 0; bottom:0; left: 0; right:0;
margin: auto;
max-width: 100%;
max-height: 100%;
}`
<div class="thumbnailContainer" fxLayout="column"> <img src="{{ThumbnailLink}}" /> </div>
My code matched to the lib looks like this. Unfortunately it doesn't work because the images get stretched to a specific aspect ratio
<ngx-progressive-image-loader class="thumbnailContainer" fxLayout="column" > <div class="thumbnailContainer" fxLayout="column"> <img [src]="slide.SlideThumbnailLink" alt="" ngxProgressiveImage /> </div> </ngx-progressive-image-loader>
Thank you very much for help in advance.
Hi,
I am experiencing the following error in Angular(v10.0.14) library project:
node_modules/ngx-progressive-image-loader/lib/ngx-progressive-image-loader.module.d.ts:6:51 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s).
6 static forRoot(config?: IImageLoaderOptions): ModuleWithProviders;
Please check next video:
https://drive.google.com/file/d/1_EArQlmDBmgTYXWHy9nat8DrGLKdn9oe/view
Images are loaded only after resize (zoom) the page.
Hello!
Nice job !!
Just a question, why do we need to include some sass styles? Should not be enough import the module? It's just that I want to use it in a cleaner way ...
Thanks and best regards
This is a feature request.
Adding a option to discard images when they are not in view would be very useful. Especially for very long non paged lists with thumbnails
First: Thanks for the great repo.
I have a question regarding memory usage when loading images via this library AND using the max-width/height options in your excample.
Suppose I'm loading a 2000x2000 pixel image with the 200x200 option with maximum width and height. Is the large image kept in memory and only scaled or is a 200x200 image created and the large image deleted?
thank you very much for help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.