Tag: Blob

Recent Post

Get the size of a file in JavaScript

First get the data in blob or blob-like format and then access its size property.

Compress an Image File in the Browser with JavaScript

Using the HTML5 Canvas API, you can do image compression on the frontend.

Image URL to Blob in JavaScript

Let Fetch's response.blob() method do the hard work!

What is a Blob object in JavaScript?

A Blob object is used for accessing, encoding and transferring files and file-like objects.

How to copy an image to the clipboard with vanilla JavaScript

Any image can be copied to the clipboard with a little help from the HTML Canvas API.

Create a client-side download with JavaScript

You can prompt a download to begin in a user's browser without contacting a server.