please tell me how to get image file size in bytes using javascript.
Thanks
If you have a base64-encoded image src, you can use img.src.length * 0.75 to determine very close file size it will take if saved to disk.
img.src.length * 0.75