Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallTo save a JPG you can see on a webpage, use the browser’s Save image command—or open the image in its own tab and save it there. If you’re building a page that offers a download, link to the JPG with an HTML <a download> element. That attribute is a useful filename hint, not a way to force downloads from every website: for JavaScript to fetch another site’s image bytes, that server must allow your page through CORS.
First decide what you mean by “download”
There are two different jobs that can sound like downloading a JPG from HTML:
- Saving an image as a visitor: you want a copy of an image displayed on a page. Use the browser’s image-saving command or open the image itself and save it.
- Offering a download as a page author: you want a link or button that lets visitors save an image file. Use an anchor link for a same-site image, or JavaScript when you have permission to obtain the image bytes.
A third task—saving a picture of the whole webpage—is a screenshot, not a download of the original JPG. The distinction matters: a screenshot captures pixels as displayed, while an image download saves the image resource itself, which may have a different resolution, crop, or format.
Save a JPG from a page in your browser
On a computer
- Right-click the image and choose the browser’s save-image command, such as Save image as. The wording differs by browser.
- Choose a folder and filename in the save dialog. If the browser offers a file type or extension, check that it reflects the actual image format.
- If the menu does not offer an image-saving command, open the image in a new tab (often available from the context menu), then use the browser’s save command there.
On a phone or tablet
Press and hold the image and use the browser’s image menu to save it, if the browser and site permit that action. Menu names and available options vary by device and browser.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Check whether you saved the version you wanted
A page may display a small thumbnail while linking to a larger image, or use a responsive image source selected for the current screen. Saving what is displayed may therefore give you a different file from the full-size original. If the image opens in a new tab, check that URL too. A file extension alone is not conclusive proof of format; the page or server may serve a different type than the name suggests.
Find the image URL in the page
If you are inspecting a page you are authorized to access, open the browser’s developer tools and inspect the image element. Look at its src attribute and, when present, srcset. A srcset can list several candidates so the browser can select an appropriate file for the viewport or display density. The selected image may not be the largest one listed.
To inspect in common desktop browsers, right-click the image and choose Inspect (or the equivalent developer-tools command). In the Elements or Inspector panel, find the rendered <img> and examine its source attributes. You can also use the browser’s open-image command to see the URL used for the displayed image. If there is no image element, the visible image may be a CSS background; inspect the element’s styles for a background-image value.
Before treating a URL as a downloadable JPG, check where it leads and what the server returns. The destination could be a page around an image, a thumbnail, or another image format. If the site provides its own download control, use that rather than trying to circumvent access restrictions.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Offer a JPG download from your own site
When the file is hosted on the same origin as your page, a direct anchor is usually the simplest option:
<a href="/images/photo.jpg" download="photo.jpg">Download JPG</a>
The href identifies the image file. The optional value in download suggests a filename to use when saving; it does not guarantee the browser will save the file rather than open it. Browser settings and the server’s response headers, including Content-Disposition, can affect what happens. The attribute is intended for same-origin URLs and also works with blob: and data: URLs. Do not rely on it to force a download from a third-party origin.
Use a clear filename and make the link’s text describe the action. If the image is not actually a JPG, do not label it as one or give it a misleading extension.
Download image bytes with JavaScript
JavaScript can fetch an image, wrap the response bytes in a Blob, and create a temporary object URL for a download link. This example is intended for a same-origin image or a remote image server that explicitly permits your page’s origin through CORS. Call it from a user action, such as a button click.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
<button id="download-photo" type="button">Download photo</button>
<script>
document.querySelector('#download-photo').addEventListener('click', async () => {
const imageUrl = '/images/photo.jpg'; // Same origin, or a server that allows this page through CORS
try {
const response = await fetch(imageUrl);
if (!response.ok) {
throw new Error(`Image request failed: HTTP ${response.status}`);
}
const blob = await response.blob();
if (!blob.type.startsWith('image/')) {
throw new Error(`The response is not an image: ${blob.type || 'unknown type'}`);
}
const objectUrl = URL.createObjectURL(blob);
const link = document.createElement('a');
link.href = objectUrl;
link.download = 'photo.jpg';
document.body.appendChild(link);
link.click();
link.remove();
// Let the browser begin the download before releasing the temporary URL.
setTimeout(() => URL.revokeObjectURL(objectUrl), 1000);
} catch (error) {
console.error('Could not download the image:', error);
// Replace with an on-page message appropriate for your application.
}
});
</script>
Change the example path and filename to match your own file. The filename is still a suggestion; use an extension that matches the actual format. For very large files, consider linking directly instead of fetching the entire response into page memory.
Why a displayed image may not be downloadable by script
A browser can display an image from another site without granting the page’s JavaScript permission to read the response bytes. Cross-origin access is controlled by the image server’s CORS response. If the server does not allow your page’s origin, fetch() may fail, and drawing the image into a canvas can leave that canvas tainted so its pixels cannot be read.
Adding crossorigin="anonymous" to an image or setting crossOrigin = 'anonymous' in JavaScript changes the kind of request the browser makes; it does not grant permission on its own. The server must return suitable CORS headers. If you control the image host, configure it to allow the intended origin, or serve the file through a download route on your own origin. If you do not control it, use the site’s own download option or save through the browser where permitted. A proxy that fetches content without authorization is not a legitimate workaround.
Choose the right method
| What you need | Use this | Important constraint |
|---|---|---|
| Save an image you are viewing | Browser save-image command, or open the image URL and save it | The displayed image can be a thumbnail or responsive variant. |
| Offer a download for an image on your site | An anchor with the file URL and a download filename |
The attribute is not a universal force-download switch; server headers and browser behavior matter. |
| Get image bytes in JavaScript | fetch(), then a Blob and object URL |
Cross-origin access requires permission from the image server through CORS. |
| Capture how a webpage looks | A screenshot tool or browser capture | A screenshot is not the original image file and may not preserve its original resolution or format. |
Or skip the browser setup
If you need an image of the page as rendered rather than the original JPG asset, ScreenshotNeo can return a screenshot as PNG, JPEG, WebP, or PDF. One GET request is enough; the following cURL example saves a WebP screenshot of the specified page. It does not extract or download the original image file from that page. See the ScreenshotNeo API documentation for request options.
Recommended Free Tools
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
ScreenshotNeo accepts cookie and consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and the response includes X-Page-Verdict and X-Billed headers. Its MCP server offers take_screenshot, get_page_info, and capture_pdf for AI agents and MCP clients. The Free plan includes 1,000 screenshots a month without a card; paid plans start at $5 for 3,000 shots. Every feature is on every plan.
Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Troubleshooting
The browser saves a small or blurry image
You may have saved the displayed thumbnail or a responsive variant. Open the image itself, inspect src and srcset, and check whether the page links to a larger original. The largest candidate is not necessarily publicly accessible or the one the site intends visitors to use.
The link opens the image instead of saving it
download is a hint, not a guarantee, and it is restricted for cross-origin URLs. For a file you control, use a same-origin URL and, if you manage the server, configure an appropriate Content-Disposition response. Visitors may also have browser settings that open certain image types directly.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →JavaScript reports a CORS or network error
Confirm the image URL and inspect the browser console and network response. If the request is cross-origin, the remote server must allow your origin; a client-side attribute cannot override the server’s policy. If you cannot change that server, use its download mechanism or provide a same-origin route for content you are authorized to serve.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
The file downloads but has the wrong type or an unexpected name
Check the response’s content type and the actual file, not only its URL suffix. Set the suggested download filename to match the real format, and check whether the server sends a filename or disposition in Content-Disposition.
The page shows the image but there is no obvious image URL
Inspect the rendered element and its styles. The image may be supplied by a CSS background-image, or the visible element may link to a wrapper page rather than a file. Inspecting the page can identify the resource, but it does not remove site access controls.
Practical reliability and performance notes
- Prefer a direct link for files you host. It avoids fetching the full image into JavaScript memory and keeps the download path simple.
- Validate JavaScript responses. Check
response.okand, where appropriate, the content type before treating a response as an image; an error page can otherwise be saved with a JPG filename. - Release temporary object URLs. Revoke each URL when the download has started and the page no longer needs it, as in the example.
- Test the actual browser behavior. Download handling can differ with browser settings, server headers, and origin boundaries; verify the experience in the browsers your visitors use.
Frequently Asked Questions
Is JPG different from JPEG?
JPG and JPEG refer to the same image format; the shorter extension became common where file extensions were limited to three characters.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsDoes saving an image give me permission to reuse it?
No. Saving a file is a technical action, not a license. Check the site’s terms and the image’s applicable rights before republishing or otherwise reusing it.
Can I download a JPG from a page that requires a login?
Only use access and download methods permitted by that site. A visible image does not grant permission to bypass login, access controls, or the site’s download restrictions.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

