title: Convert image url to blob in Javascript
body: <p>How do I convert a literal url for an image into a blob?</p>
  <p><strong>CODE</strong></p>
  <pre><code>emoji.url = &quot;https://e.mirror-ai.net/mj/en/PcW59GJ5T2SpEtPEFRADWA/yB4/154725046.png&quot;
  
  const imageUrlToBlob = url =&gt; {
    
  };
  
  const zipAndSave = async emojis =&gt; {
    const zip = new JSZip();
    for (var emoji of emojis) {
      let emojiFile = imageUrlToBlob(emoji.url);
      zip.file(emoji.name, emojiFile);
    }
    const zipped = await zip.generateAsync({ type: &quot;blob&quot; });
    saveAs(zipped, &quot;emojis.zip&quot;);
  };
  </code></pre>