🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

angular-image-resizer-component

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-image-resizer-component

Angular component for resizing images with specified dimensions

1.0.4
latest
npm
Version published
Weekly downloads
5
25%
Maintainers
0
Weekly downloads
 
Created
Source

ng-resizable-image

An Angular component for resizing images with specified dimensions while maintaining image quality.

Installation

bash npm install ng-resizable-image

Usage

typescript import { ResizableImageComponent } from 'ng-resizable-image'; @NgModule({ imports: [ ResizableImageComponent ] })

In your template:

<app-resizable-image
  [src]="'path/to/image.jpg'"
  [widthInches]="15"
  [heightInches]="24"
  [pxToInch]="12"
></app-resizable-image>

API

Inputs

  • src: string - Source URL of the image
  • widthInches: number - Desired width in inches
  • heightInches: number - Desired height in inches
  • pxToInch: number - Pixels per inch ratio (default: 12)
  • originalWidth: number - Original width in inches (default: 15)
  • originalHeight: number - Original height in inches (default: 24)

Methods

  • exportAsSVG() - Exports the resized image as SVG file

License

MIT

html:README.md <app-resizable-image [src]="'path/to/image.jpg'" [widthInches]="15" [heightInches]="24" [pxToInch]="12"

API

Inputs

  • src: string - Source URL of the image
  • widthInches: number - Desired width in inches
  • heightInches: number - Desired height in inches
  • pxToInch: number - Pixels per inch ratio (default: 12)
  • originalWidth: number - Original width in inches (default: 15)
  • originalHeight: number - Original height in inches (default: 24)

Methods

  • exportAsSVG() - Exports the resized image as SVG file

License

MIT

Keywords

angular

FAQs

Package last updated on 16 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts