Choose Cropper.js when your feature is primarily selecting and exporting a crop. Choose Pintura when users also need a supplied editing interface for adjustments, annotations, redaction, or other image operations. Both run in the browser, but they solve different integration problems: Cropper.js is a focused, MIT-licensed cropper, while Pintura is a broader editor component whose v8 documentation describes multiple UI factories and framework integrations.
What to decide before choosing a library
Write down the exact interaction your users need before comparing packages. A profile-photo flow that only requires a square selection has a very different implementation cost from a product that needs crop constraints, color controls, redaction, previews, and export controls.
- Editing scope: crop only, or crop plus rotation, resizing, color adjustments, drawing, redaction, and other operations?
- UI ownership: do you want primitives that your team assembles, or a ready editor component with modal and inline modes?
- Input sources: local files and blobs, generated canvas data, or images hosted on another origin?
- Framework: vanilla JavaScript, React, Vue, Angular, Svelte, jQuery, Alpine, or a custom element?
- Commercial constraints: is an MIT-licensed dependency required, or can your project evaluate a product with separate commercial terms?
Performance, bundle size, accessibility conformance, and complete browser support were not established by the available documentation. Treat those as acceptance-test items, not assumptions.
Cropper.js: a focused crop tool
Cropper.js describes itself as a “JavaScript image cropper.” The project page and npm package list version 2.2.0 and identify the package as MIT licensed. Installation is direct:
Recommended Free Tools
#1 Best Overall
- Wacom Intuos Small Graphics Drawing Tablet: Enjoy industry leading tablet performance in superior control and precision with Wacom's EMR, battery free technology that feels like pen on paper
- Works With All Software: Wacom Intuos tablet can be used in any software program to explore new facets of digital creativity; draw, paint, edit photos/videos, create designs, and mark up documents
- What the Professionals Use: Wacom's industry leading pen technology and pen to paper feeling makes it the preferred drawing tablet of professional graphic designers
- Software and Training Included: Only Wacom gives you software with every purchase. Register your Intuos tablet and gain access to some of the best creative software and Wacom's online training
- Wacom is the Global Leader in Drawing Tablet and Displays: For over 40 years in pen display and tablet market, you can trust that Wacom to help you bring your vision, ideas and creativity to life
npm install cropperjs
Its focused scope is an advantage when your application already owns the surrounding form, toolbar, validation, and upload pipeline. You can build exactly the controls you need and keep the rest of your product’s visual language consistent. The trade-off is that your team must design and connect those controls instead of receiving a complete editing workflow.
Minimal Cropper.js preview and export
The following example previews a selected file, lets the user select an area, and exports a JPEG blob. It uses the browser’s file input and canvas APIs; adapt the event handling to your framework as needed.
<input id="imageInput" type="file" accept="image/*">
<img id="preview" alt="Image selected for cropping" hidden>
<button id="export" type="button" disabled>Export crop</button>
<a id="download" hidden>Download result</a>
<script type="module">
import Cropper from 'cropperjs';
import 'cropperjs/dist/cropper.css';
const input = document.querySelector('#imageInput');
const image = document.querySelector('#preview');
const exportButton = document.querySelector('#export');
const download = document.querySelector('#download');
let cropper;
let objectUrl;
input.addEventListener('change', () => {
const file = input.files?.[0];
if (!file) return;
if (!file.type.startsWith('image/')) {
alert('Choose an image file.');
return;
}
if (objectUrl) URL.revokeObjectURL(objectUrl);
objectUrl = URL.createObjectURL(file);
image.src = objectUrl;
image.hidden = false;
exportButton.disabled = false;
cropper?.destroy();
cropper = new Cropper(image, {
aspectRatio: 1,
viewMode: 1,
autoCropArea: 0.9
});
});
exportButton.addEventListener('click', () => {
if (!cropper) return;
cropper.getCroppedCanvas({
width: 800,
height: 800,
imageSmoothingEnabled: true,
imageSmoothingQuality: 'high'
}).toBlob((blob) => {
if (!blob) return;
const url = URL.createObjectURL(blob);
download.href = url;
download.download = 'cropped-image.jpg';
download.textContent = 'Download cropped image';
download.hidden = false;
}, 'image/jpeg', 0. nine);
});
</script>
Replace the accidental-looking quality value in production with a number from 0 to 1 (for example, 0.9); the value controls JPEG encoding quality. Destroy the instance when the component unmounts and revoke object URLs when they are no longer needed.
When Cropper.js is the better fit
- Avatar, thumbnail, cover-image, and document-crop workflows.
- A design system that requires your own toolbar and validation messages.
- Projects that prefer an MIT-licensed package and can maintain the surrounding UI.
- Teams that want crop behavior without committing to a full editor surface.
Pintura: a broader browser editor
Pintura’s v8 documentation describes it as a JavaScript component that brings image editing to the browser. Its API documents factories for appending an editor, opening a modal editor, and overlaying controls on an image. The installation documentation lists components for React, Vue, Angular, Svelte, jQuery, and Alpine.
Free tools Windows power users keep installed
One-click scans. No signup required.
Rank #2
- Working Area Configuration - HUION art tablet equips with a 10 x 6.25 inches working area, providing the user with the most comfortable size to work; the 10mm slim structure and minimalist design of appearance make the drawing tablet more attractive.
- Tilt Function Battery-free Stylus: This computer graphics tablet come with a battery-free stylus PW100, no need to charge, allowing for constant uninterrupted drawing. ±60° tilt support enables imitation of lines input with diverse drawing gestures, with accuracy ensured.
- Press Keys:12 programmable press keys plus 16 programmable soft keys, you can set shortcut keys on drawing tablet's driver based on your preferences, such as erase, zoom in/out, scroll up and down, and so on.
- Compatibility: HUION graphics tablet supports Windows 7 or later/ macOS 10.12 or later/ Android 6.0 or later/ Linux (Ubuntu). A USB adapter is required to connect to a Mac computer. H1060P supports various mainstream design and drawing software, including PS, SAI, AI, CDR, etc. (Please note: The H1060P is compatible with Ubuntu, but it requires the use of the Xorg display server. Wayland is not supported.)
- NOTE: You can easily connect your phone to the art tablet via the OTG connector; while iPhone and iPad are NOT at the moment. The cursor will not show up in the SAMSUNG Galaxy S series at present. If you are not sure whether the product is compatible with your Phone or any help, please contact us.
The overlay editor currently supports cropping only. In that mode, the editor fits the image preview to its container and adjusts the output aspect ratio. Use the append or modal factories when your flow needs broader editing controls.
UI patterns to match your product
| Pattern | Use it when | Important qualification |
|---|---|---|
| Append | The editor belongs permanently inside a panel or page. | Your layout supplies a stable container. |
| Modal | Editing should open on demand from an upload or “Edit” button. | You must connect completion and cancellation to your form state. |
| Overlay | You need crop controls directly over an existing image preview. | The documented overlay layout is currently limited to cropping. |
| Custom element | Your application prefers declarative markup or framework-agnostic integration. | Confirm the v8 API and package setup for your build system. |
Inputs and remote images
Pintura documents support for File, Blob, Data URL, URL, ImageData, ImageBitmap, HTMLCanvasElement, and HTMLImageElement. A URL is not automatically permission to read pixels: remote images must be served with correctly configured CORS headers. Without CORS, the browser can display an image but prevent canvas-based editing or export because the canvas becomes tainted.
const editor = createEditor({
src: fileOrBlob,
// configure the documented Pintura plugins and output options here
});
editor.on('process', ({ dest }) => {
// Upload dest, a Blob/File-like result, to your application.
});
Use the exact factory and plugin imports from the Pintura v8 installation guide for your chosen framework. The documentation reviewed here does not establish Pintura’s complete licensing or commercial terms, so obtain the current terms before shipping a paid product.
Cropper.js vs Pintura at a glance
| Decision axis | Cropper.js | Pintura |
|---|---|---|
| Primary scope | Focused image cropping. | Broader in-browser image editing. |
| UI approach | Lower-level cropper; your team assembles surrounding controls. | Append, modal, overlay, and custom-element patterns are documented. |
| Framework integration | Use the package in your chosen application architecture. | Documented components include React, Vue, Angular, Svelte, jQuery, and Alpine. |
| Remote input | Browser canvas security still applies to any remote image workflow. | Remote URLs require correctly configured CORS headers. |
| License or terms | Project and npm identify version 2.2.0 as MIT licensed; verify before publishing. | Current complete commercial terms were not established here; review the vendor’s current terms. |
| Best starting point | Crop-only requirements and a custom product UI. | A supplied editing component and multiple editing operations. |
A practical selection process
- List operations. Mark each requirement as crop, rotate, resize, adjust color, annotate, redact, or export. If crop is the only required operation, start with Cropper.js.
- Choose the UI boundary. Decide whether your team owns the toolbar and modal behavior. If not, evaluate Pintura’s append or modal patterns.
- Classify image sources. Test local files, blobs, canvas output, and every remote origin. Add the required CORS response headers before debugging the editor.
- Prototype the largest image. Measure memory, interaction latency, and export time on the oldest supported device. No comparative benchmark establishes a winner here.
- Test keyboard and screen-reader flows. Verify focus management, labels, keyboard operation, zoom behavior, and error announcements in your own application.
- Review terms and updates. Confirm the package version, license, framework adapter, and commercial terms at release time because these details can change.
Common problems and fixes
The preview is blank
- Check that the file input returned a file and that its MIME type is an image.
- Ensure the image element is visible and has dimensions before creating the cropper or editor.
- Wait for the image’s
loadevent when dimensions are required.
Export fails for a remote URL
Serve the image with an Access-Control-Allow-Origin value that permits your application, set the image request’s CORS mode as required by your integration, and verify that redirects preserve the header. If you do not control the origin, proxy the asset through a server you control rather than weakening browser security.
Rank #3
- Advanced PenTech 3.0: Upgraded from PenTech 2.0 to PenTech 3.0, Inspiroy 2 art pad offers amazing precision & control over every line with no noticeable lag & wobble, just like a standard pen.
- Ergonomics Pen Design: The new digital stylus PW110 is improved designed with slimmer body, soft silicone grip & accessible side buttons for better ergonomics & comfort.
- Programmable Scroll & Shortcut Keys: Unique scroll wheel & 8 press keys can be customized to your favorite shortcut so that your creative work become smoother and more efficient. You also can change the setting for different apps.
- Mobile Friendly: Enjoy creating on your Inspiroy 2 and see your drawings and paintings come to life on your Android smartphone or tablet (OS version 6.0 or later).
- Multi-OS Compatibility: Inspiroy 2 pen tablet is compatible with Mac (MacOS 10.12 or later), PC (Windows 7 or later), Linux(Ubuntu 20.04 LTS) , Android devices (OS version 6.0 or later) and ChromeOS 88 or later
The crop is distorted
Set an explicit aspect ratio only when the product requires one. Check the source and output dimensions, and avoid stretching a crop canvas to fit a display box without preserving its ratio.
Memory grows after repeated edits
Destroy editor instances during component teardown, revoke every object URL created with URL.createObjectURL, and release temporary canvases or blobs after upload. Large phone photos can consume substantial browser memory even before export.
The editor does not fit a modal
Give the container a measurable width and height, initialize after the modal is laid out, and refresh or resize according to the library’s documented lifecycle. Do not initialize against a hidden element with zero dimensions.
A framework build cannot resolve imports
Confirm the package version and adapter instructions for your framework, import CSS where the bundler expects it, and check whether your environment supports the package’s module format. Pin a tested version rather than relying on an unbounded range.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Rank #4
- Customize Your Workflow: The 6 customizable press keys on Huion H640P drawing tablet for pc let you assign your most-used commands—like undo, zoom, brush switch, or save—so you can keep your hands on the tablet and your mind on the art. Whether you're a digital painter switching brushes, or a comic artist zooming in and out, these keys keep your workflow smooth and uninterrupted. Plus, the Huion driver lets you save different shortcut profiles for different apps, so you never have to reconfigure when switching software.
- Professional Pen Performance: Huion H640P drawing pad for computer comes with the battery-free PW100 stylus that's always ready when inspiration strikes. With 8192 levels of pressure sensitivity, every light sketch, or bold stroke responds naturally to your hand—just like a real pen. The 5080 LPI resolution and 233 PPS report rate deliver lag-free, precise strokes, so you can draw confidently without second-guessing your cursor. The pen side buttons help you switch between pen and eraser instantly.
- Compact and Portable: Huion H640P computer graphics tablet features a compact, ultra-portable design at just 0.3 inches thin and 0.61 lbs light, so it slides easily into your backpack—perfect for sketching in coffee shops, taking notes in class, or editing on the go between home and studio. The 6x4 inch active area offers enough room for natural pen movements while fitting comfortably on crowded desks, or lecture hall seats.
- Stable Compatibility: Huion H640P graphic drawing tablet works seamlessly with Mac, Windows, Linux PCs, and Android smartphones/tablets (OS version 6.0 or later). Left-handed friendly, and you just need to flip the tablet and adjust the settings in the driver. Please note: H640P does NOT support iPhone/iPad.
- Move Beyond the Mouse: Huion Inspiroy H640P is a pen tablet that replaces your mouse for more natural, precise control. Freehand draw, take notes, or even play OSU—everything you do with a mouse, you can do better with a pen. The precise tip makes it ideal for detailed photo editing, graphic design, or signing PDF. Meanwhile, the ergonomic pen grip helps you avoid the strain that comes from hours of using a mouse.
Performance, reliability, and cost considerations
Both approaches perform image work in the browser, so source dimensions, device memory, canvas limits, and export format matter more than a generic library ranking. Resize or downsample very large originals before expensive operations when your product permits it, and upload the processed result rather than the original when privacy and quality requirements allow.
Keep the original file when users may need to re-edit at full resolution. Treat client-side processing as a user-interface convenience, not a security boundary: validate type, dimensions, and content again on the server before storage or publication.
Cropper.js has a clearly stated MIT license in the reviewed project and npm listings. Pintura’s complete current commercial terms were not established in the reviewed documentation; obtain and record the applicable terms for your organization. Neither library should be declared faster, smaller, more accessible, or more compatible without testing your target browsers and devices.
Or skip the browser setup
If your actual requirement is generating website screenshots rather than letting users edit uploaded images, ScreenshotNeo provides a one-request API. It is separate from the in-browser libraries above: the service loads a URL and returns a PNG, JPEG, WebP, or PDF.
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 errorsBest Value
- Battery-Free Pen: StarG640 drawing tablet is the perfect replacement for a traditional mouse! The XPPen advanced Battery-free PN01 stylus does not require charging, allowing for constant uninterrupted Draw and Play, making lines flow quicker and smoother, enhancing overall performance
- Ideal for Online Education: XPPen G640 graphics tablet is designed for digital drawing, painting, sketching, E-signatures, online teaching, remote work, photo editing, it's compatible with Microsoft Office apps like Word, PowerPoint, OneNote, Zoom, Xsplit etc. Works perfect than a mouse, visually present your handwritten notes, signatures precisely
- Compact and Portable: The G640 art tablet is only 2 mm thick, it's as slim as all primary level graphic tablets, allowing you to carry it with you on the go
- Chromebook Supported: XPPen G640 digital drawing tablet is ready to work seamlessly with Chromebook devices now, so you can create information-rich content and collaborate with teachers and classmates on Google Jamboard’s whiteboard; Take notes quickly and conveniently with Google Keep, and effortlessly sketch diagrams with the Google Canvas
- Multipurpose Use: Designed for playing OSU! Game, digital drawing, painting, sketch, sign documents digitally, this writing tablet also compatible with Microsoft Office programs like Word, PowerPoint, OneNote and more. Create mind-maps, draw diagrams or take notes as replacement for mouse
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
See the ScreenshotNeo API documentation for parameters. Before capture it accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be disabled. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers identify the page verdict and whether the request was billed. An MCP server supplies take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots. Create a free ScreenshotNeo account.
Which library should you choose?
Pick Cropper.js for a crop-centered feature where your application should own the controls and workflow. Pick Pintura when you need a broader editing component, documented modal or inline patterns, and framework adapters. Make the final decision with a prototype that uses your largest real images, your remote origins, your accessibility requirements, and the license terms your project can accept.
Frequently Asked Questions
Can I use both libraries in one application?
Yes, but avoid loading two editors for the same workflow without a clear reason. A focused crop flow can use Cropper.js while a separate advanced-edit flow uses Pintura; share your upload, validation, and export contracts.
Do these libraries upload images to a server automatically?
The browser produces a preview or processed result; your application decides whether and how to upload it. Validate files on the server before storing or publishing them.
Why does a remote image display but fail to export?
Displaying pixels is less restrictive than reading them through canvas. The remote server must send CORS headers that authorize your origin, otherwise browser security blocks canvas export.
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.

