The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →If html2canvas produces a blank or clipped image on a phone, first reduce the capture area or output scale. If images are missing, check cross-origin permissions; if text or layout differs, check whether html2canvas supports the CSS involved. The right fix depends on the symptom: html2canvas reconstructs an image from DOM and supported styles rather than capturing the browser’s pixels, and mobile canvas limits vary by device and conditions.
Identify the failure before changing options
Start by separating the main failure types. A blank canvas or an image that stops partway through points toward output dimensions, canvas limits, or a device-specific issue. Missing external images usually indicate cross-origin restrictions. A capture that contains the page but looks different from the screen may reflect unsupported CSS or a different viewport in html2canvas’s cloned render.
html2canvas traverses the DOM and draws a representation from the properties it understands. It is not a native, pixel-for-pixel screenshot, so changing a scale or viewport option cannot make unsupported CSS render exactly as the browser does.
Fix a blank or clipped canvas
Reduce the output pixel area
Measure the target element’s rendered width and height, then account for scale: the output canvas dimensions grow with the scale, and the pixel area grows with both dimensions. A large, full-page element at a high scale can exceed the browser’s canvas capacity. Browser and platform limits differ; on iOS Safari, capacity also varies with device conditions. The html2canvas FAQ warns that exceeding a limit can result in blank or partially rendered output, and does not establish one fixed current iOS megapixel ceiling.
#1 Best Overall
- WORKS FOR iPhone 17e/16e/14/13/13 Pro 6.1 Inch Display Screen 0.33mm tempered glass screen protector.Featuring maximum protection from scratches, scrapes, and bumps.[Not for iPhone 16 6.1 inch, iPhone 13 mini 5.4 inch, iPhone 13 Pro Max/iPhone 14 Pro Max/iPhone 14 Plus 6.7 inch, iPhone 14 Pro 6.1 inch]
- Specialty:to enhance compatibility with most cases, the Tempered glass does not cover the entire screen. HD ultra-clear rounded glass for iPhone 17e/16e/14/13/13 Pro is 99.99% touch-screen accurate.
- 99.99% High-definition clear hydrophobic and oleophobic screen coating protects against sweat and oil residue from fingerprints.
- It is 100% brand new,Precise laser cut tempered glass, exquisitely polished,2.5D rounded edges.
- Online video installation instruction: Easiest Installation - removing dust and aligning it properly before actual installation,enjoy your screen as if it wasn't there.
- Capture a smaller element or region instead of the whole document.
- Lower
scale. Its default iswindow.devicePixelRatio, so explicitly setting a smaller value can reduce output dimensions. - Test the result on the actual iPhone or iPad models you support; desktop success does not establish that a mobile device can allocate the same canvas.
For example, this captures a crop of a target element. Set the selector, crop coordinates, and dimensions to match your page:
const element = document.querySelector('#capture-area');
html2canvas(element, {
scale: 1,
x: 0,
y: 0,
width: 800,
height: 600
}).then(canvas => {
document.body.appendChild(canvas);
});
The crop coordinates and dimensions need to describe the part of the target you intend to render. A crop reduces the area being captured; it does not remove browser security restrictions or add support for CSS features.
Check the render window for long content
If the target is clipped because the cloned render window is too small, try setting windowWidth and windowHeight to the element’s scroll dimensions. These options change the window used to render the cloned page and can change media-query behavior. They may help with clipping caused by that window, but they are not a general way around canvas capacity limits.
Rank #2
- [Compatibility]: This tempered glass screen protector is compatible with the following models: Blu View 5 (Note: Not suitable for other models).
- [Included Tools]: Each screen protector comes with dust stickers and a cleaning kit, making it super easy to apply without bubbles and keeping your screen nice and clean.
- [Premium Material]: Made from high-quality tempered glass, it boasts excellent hardness to effectively reduce scratches. You’ll enjoy lightning-fast responsiveness and crystal-clear clarity.
- [Craftsmanship]: The tempered glass screen protector features a finely polished 2.5D rounded edge design, providing a smooth touch and a perfect fit for your phone.
- [Customer Support]: We offer quick and reliable after-sales support and service that you can trust.
const element = document.querySelector('#capture-area');
html2canvas(element, {
windowWidth: element.scrollWidth,
windowHeight: element.scrollHeight
}).then(canvas => {
document.body.appendChild(canvas);
});
If the output remains blank or truncated after reducing the region and scale, compare results across the target devices and browsers. An issue report titled “iOS: canvas returns blank image” documents an iOS Safari report, but one report does not establish a universal cause or a universal workaround.
Fix missing images and cross-origin content
Use CORS only when the image server permits it
Browsers restrict access to pixels from cross-origin images unless the image server grants permission. You can ask html2canvas to use CORS-enabled image loading with useCORS: true, but this setting cannot grant permission the remote server has not provided. The image response must include suitable Access-Control-Allow-Origin headers.
html2canvas(document.querySelector('#capture-area'), {
useCORS: true
}).then(canvas => {
document.body.appendChild(canvas);
});
Use a permitted same-origin route when CORS is unavailable
If the remote image host does not allow cross-origin access, use an image hosted on your own origin or a properly configured proxy that retrieves the asset through a same-origin path. Do not treat allowTaint as a fix for a canvas that must be read or exported: a tainted canvas cannot be read normally, and that option does not bypass the browser’s origin policy.
Rank #3
- [Compatible Models] - 3 Pack Privacy Glass Screen Protector for the iPhone 17e/iPhone 16e/iPhone 14/iPhone 13/iPhone 13 Pro(6.1 inch). Includes 3 privacy screen protectors and a cleaning kit. *Two types of packaging boxes are randomly shipped.
- [Full Coverage Protection] - This screen protector offers edge-to-edge protection for your device, using military-grade explosion-proof glass. It is also compatible with most phone cases, the appropriate size ensures that the phone case won't squeeze the screen protector after installation, providing double protection for the edges of the phone.
- [High Privacy Protection] - The necessary choice for you in public places. Select the optimal anti-peeping angles for the anti-spy coating to balance privacy and visual comfort. Protect your personal privacy and sensitive information from being seen by people nearby who might peek. To better protect your phone, 3mm nano-scale ultra-thin aviation glass is chosen as the material, it also protects your eyes from harsh light, ensuring a softer visual effect.
- [Superior Quality] Made of high-quality tempered glass, free of bubble wrap, easy to install and no residue when disassembled. Maintain the original touch experience, with a high-definition and clear hydrophobic and oleophobic screen coating to prevent fingerprints, sweat and oil residue. High-hardness glass protects your screen from drops, impacts, scratches and breaks, providing ultimate protection for your phone.
- [Face ID Compatible] - Precise cutting combined with high-quality glass material supports the perfect use of the Face ID function, and it can also take high-pixel photos through the front camera.
The same security boundary applies to embedded content. html2canvas can recursively render same-origin iframes, but it cannot access cross-origin iframe documents. It also cannot normally read a canvas that was already tainted by cross-origin content.
Fix text, colors, or layout that do not match the screen
Check the specific CSS feature
When the capture is present but styling differs, check the supported-features reference for the CSS property in question. html2canvas implements CSS properties individually; its FAQ says, “Every CSS property must be manually implemented to render correctly, so html2canvas will never have full CSS support.” A mobile-only appearance is not necessarily a mobile browser bug if the property itself is unsupported or incomplete in the renderer.
Match the render viewport to the behavior you need
The options windowWidth and windowHeight affect the cloned render window and can alter media-query results. Use them when the page’s responsive layout differs because the clone is rendering at a different viewport. For fixed-position elements, scrollX and scrollY control the scroll position used during rendering. Crop and output sizing options serve different purposes; none is a universal visual-fidelity switch.
Rank #4
- Works For iPhone 14 Pro 2022 tempered glass screen protector and camera lens protector.Featuring maximum protection from scratches, scrapes, and bumps.[Not for iPhone 14 6.1 inch, iPhone 14 Plus/iPhone 14 Pro Max 6.7 inch]
- Night shooting function: specially designed iPhone 14 Pro 6.1 Inch display 2022.The camera lens protector adopts the new technology of "seamless" integration of augmented reality, with light transmittance and night shooting function, without the need to design the flash hole position, when the flash is turned on at night, the original quality of photos and videos can be restored.
- It is 100% brand new, precise laser cut tempered glass, exquisitely polished. 0.33mm ultra-thin tempered glass screen protector provides sensor protection, maintains the original response sensitivity and touch, bringing you a good touch experience.
- Easiest Installation - Please watch our installation video tutorial before installation.Removing dust and aligning it properly before actual installation,enjoy your screen as if it wasn't there.
- 99.99% High-definition clear hydrophobic and oleophobic screen coating protects against sweat and oil residue from fingerprints,enhance the visibility of the screen.
If a property is not supported, changing viewport dimensions will not implement it. Build a minimal reproduction containing the affected element and styles, then confirm the property’s support before treating the difference as a device-specific failure.
Use the options that match the symptom
| Option | Useful when | What it does not solve |
|---|---|---|
scale |
The output canvas is too large or exceeds device capacity; a lower value reduces output dimensions. | Missing CORS permission or unsupported CSS. |
x, y, width, height |
You need to capture a particular region rather than a large target. | Cross-origin access restrictions or unsupported styles. |
windowWidth, windowHeight |
The cloned render window is too small, or responsive media queries need a particular viewport. | A universal bypass for canvas limits or missing CSS support. |
scrollX, scrollY |
Fixed-position elements need rendering at a particular scroll position. | Missing image permissions or canvas size limits. |
useCORS |
Remote image servers already grant cross-origin access through suitable response headers. | Permission the server has not granted. |
When html2canvas is the wrong capture method
Choose a different capture approach when the requirement is a native screenshot or when the target environment imposes constraints html2canvas cannot bypass.
- Browser extension: the html2canvas FAQ recommends the browser’s native extension screenshot API for extension use cases. It captures the browser view rather than rebuilding it from DOM styles and does not have canvas size limits.
- Server-side screenshot generation: the FAQ points to browser automation tools such as Puppeteer or Playwright. These run in a server-side browser workflow; they are not drop-in fixes for code that must capture a page inside a visitor’s mobile browser.
- Mobile web page: if capture must happen in the page on the device, continue diagnosing dimensions, permissions, and CSS support, and test on the actual target devices.
Or skip the browser setup
If you need a website screenshot without managing an in-page canvas, ScreenshotNeo accepts one GET request with a URL and returns an image or PDF. Its cleanup options accept cookie or consent banners and remove more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each cleanup step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and responses include X-Page-Verdict and X-Billed headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents and other MCP clients.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errorsHere is a cURL request using the documented API endpoint; replace the URL with the page you want to capture and supply your access key. See the ScreenshotNeo API documentation for parameters and output options.
Best Value
- Include 3 PCS Screen Protector, Tailored-fit to your device's screen, Maximum Strength.
- Made of Japan Hardnest Glass, High Scratch Resistance, Smooth and high touch responsive with Superb Oleophobic Coating.
- HIGH GRADE COMPONENTS: Mr.Shield Ballistic Glass screen protectors use the Silicone adhesives for viewing clarity and easy installation and removal.
- 99.99% HD clarity and touch accuracy.
- From scratches to high impact drops, you are protected with Mr.Shield HD Clear Glass.
curl -G "https://api.screenshotneo.com/v1/shot"
-d access_key=YOUR_API_KEY
--data-urlencode url=https://stripe.com
-o shot.webp
ScreenshotNeo offers 1,000 screenshots per month free with no card required; paid plans start at $5 for 3,000 screenshots. Learn about ScreenshotNeo or sign up for the free plan.
Troubleshooting checklist
| Symptom | Likely cause | Next step |
|---|---|---|
| Blank canvas or output stops partway down | Canvas dimensions exceed browser or device capacity, or the render window is too small. | Reduce scale or capture a smaller region; if the clone window is too small, try matching its width and height to the content’s scroll dimensions. |
| External images are missing | The image host has not granted cross-origin access. | Use useCORS only with suitable server headers; otherwise use a same-origin asset or properly configured proxy. |
| Text, color, or layout differs | The CSS feature may not be implemented, or the cloned viewport may trigger different media queries. | Check the feature-support reference and verify the render window; create a minimal reproduction. |
| Iframe contents are absent | The iframe is cross-origin and cannot be accessed by page script. | Use a same-origin iframe if appropriate; html2canvas cannot bypass cross-origin security. |
| An existing canvas cannot be exported | It may have been tainted by cross-origin content. | Ensure its assets are loaded with the required permissions; allowTaint does not make tainted pixels readable. |
FAQ
Does setting useCORS: true bypass CORS?
No. The image server must permit cross-origin loading with suitable response headers. Otherwise use a permitted same-origin asset or proxy.
Is there a single current iOS canvas-size limit to use?
The official html2canvas FAQ describes browser and platform limits as variable and gives no fixed current iOS figure. Test on the specific devices you support.
Will switching to Puppeteer or Playwright fix a capture that runs inside a mobile page?
Not automatically. Those tools are server-side browser automation approaches; they do not replace an in-page mobile capture workflow without changing where the screenshot is generated.
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.

