Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Select
Custom Inputs
Components
Navigation
Components
69
Micro Charts
Libraries
Kanban Board
Image Designer
Video Player
Visual Builder
Content Editor
Data View
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Purchase

Thumbnail Maker

The ngs-thumbnail-maker component lets users create a square thumbnail from an image by dragging the image inside a fixed crop area and adjusting zoom. The app can then read the finished 300x300 thumbnail as a data URL, blob, or canvas.

Key Features:
  • Drag positioning: Move the image inside the thumbnail frame before saving.
  • Zoom controls: Use the built-in slider and plus/minus buttons to adjust scale.
  • Bitmap output: Retrieve the final thumbnail through getDataUrl(), toBlob(), or getCanvas().
  • Upload workflows: Combine with Upload when users need to select a local image first.

Use it for avatars, profile images, CMS thumbnails, media library previews, and card images that need a simple square output.

PropTypeDefault
src*
The source URL of the image to be processed
string
helperText
Instructional text displayed to the user
string''
MethodReturn Type
getDataUrl()
Returns the resulting thumbnail as a Data URL
string
toBlob(callback: BlobCallback)
Converts the thumbnail to a Blob and passes it to the callback
void
getCanvas()
Returns the canvas element containing the thumbnail
HTMLCanvasElement
increase()
Increases the zoom level
void
decrease()
Decreases the zoom level
void