Reputation: 789
Task done by me
Select image using file input<input type="file" accept="image/*" multiple="multiple" />
Create Object url using url: URL.createObjectURL(file[0])
. e.g url = blob:http://0.0.0.0:5002/e468fb70-d597-4b17-bb3a-ec6272f2d7fe.
Display the image in web page using <img src={ url } width="100px" height="100px" />
Now what I want to do is,
Read and Compress image from url=blob:http://0.0.0.0:5002/e468fb70-d597-4b17-bb3a-ec6272f2d7fe
Upload compressed image to server
This project is in reactjs. Your suggestion will be helpful to me.
Upvotes: 0
Views: 5505
Reputation: 1051
Upvotes: 2