Static images where the file path is already known.
If your application uses a canvas (common in photo editors), you must convert the canvas content to a JPG format specifically before downloading. Download photo jpg
Use canvas.toDataURL("image/jpeg") or canvas.toBlob(callback, "image/jpeg") . This ensures the user receives a .jpg file even if the internal working format was different. Static images where the file path is already known