Create a URL Builder in react API itself which uses the IKContext
Closed this issue · 1 comments
JayeshVP24 commented
A recent issue I faced was with responsive images with imagekit-io
The IKImage has no feature for responsiveness
- So had to use
<img />
which has all the necessary responsive features - Had to write the whole URL and transformations in URL format
- Seems redundant
My suggested solution
- Create another function which refers the IKContext for the URL
- Imagekit-react already has the code for all transformations
Would be great if we had responsive feature somehow integrated in IKImage but until then, this small feature can help many.
imagekitio commented
You can use IKCore https://github.com/imagekit-developer/imagekit-react#ikcore
It exposes underlying ImageKit javascript SDK which can be used to generate URL.