react-cool-img icon indicating copy to clipboard operation
react-cool-img copied to clipboard

Use url in placeholder

Open MP3Martin opened this issue 2 years ago • 6 comments

I know this is probably gonna get closed, but i still want to ask you. Is there any way i can use image url as a value for placeholder? Thank you

MP3Martin avatar Apr 30 '22 15:04 MP3Martin

@MP3Martin I think it might work, just try it and let me know.

wellyshen avatar May 02 '22 09:05 wellyshen

No, it does not work. Btw import loadingImage from "./images/loading.gif"; converts the image into base64. I tried fetching the image and then converting it to base64, but it is too slow, unpredictable and complicated.

Thank you for any solutions or tips.

Edit: why do I want this: CDNs are fast

MP3Martin avatar May 02 '22 12:05 MP3Martin

@MP3Martin Does CDN faster than the local image file?

wellyshen avatar May 04 '22 09:05 wellyshen

@MP3Martin Does CDN faster than the local image file?

Yes. The point is that i need it to have input similar to src="".

This is just a suggestion

MP3Martin avatar May 04 '22 11:05 MP3Martin

If you think this is unnecessary, you can close this issue. I can live without 0.09 seconds @wellyshen

MP3Martin avatar May 05 '22 11:05 MP3Martin

@MP3Martin It's OK to leave this issue open, I will take time to see if we can support this feature or not.

wellyshen avatar May 05 '22 11:05 wellyshen

@MP3Martin It's OK to leave this issue open, I will take time to see if we can support this feature or not.

But isn't necessary, placeholder: Local image, fast

TrejoCode avatar Sep 19 '22 22:09 TrejoCode

Unnecessary "issue / feature request"

MP3Martin avatar Sep 24 '22 13:09 MP3Martin