Oskar Karlsson

Results 54 comments of Oskar Karlsson

That should be possible. Do you have an example of a base64 image? Or how you are using it?

I guess so, here is an example of using a base 64 image in a component: https://codesandbox.io/s/lazy-load-image-with-base-64-image-gml2t?file=/src/app/app.component.ts It should just work ;)

So in your case `https://abcd.com/img/1` will return a base64 image? In that case I think you need to create your own function to download the image. Will all your images...

Do you mean something like this: ```ts @Component({ selector: 'image', template: ``, }) class ImageComponent { base64image = fetch('https://abcd.com/img/1').then(r => r.text()); } ``` Otherwise, I need a small project where...

Hi @Coder7777, I see that you are using the `ScrollHooks`. Have you tried the default `IntersectionObserverHooks`? ```diff LazyLoadImageModule ], - providers: [{ provide: LAZYLOAD_IMAGE_HOOKS, useClass: ScrollHooks }], declarations: [HomePage] ```...

Thanks for your kind words. I agree that it should be posible. Let's continue the discussion in #444

Hi @MrHOY, Is it possible for you to create a small project where you can reproduce this issue?

Hi @borjapazr, sorry for the delay. To be honest, the SSR support is not well thought out and I have never used Angular with SSR so I'm happy to take...

###### I really miss a thread function on github but I will try to summarize my thoughts. I like your idea that "If the image path is invalid (falsy), use...

I tried out my idea to use `getComputedStyle`. The problem is that `getComputedStyle` triggers a reflow so the image is loaded when we call `getComputedStyle` (in the `ngOnChanges`-lifecycle so I...