Socket
Book a DemoInstallSign in
Socket

ng-resizable-image

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-resizable-image

Angular component for resizing images with specified dimensions

1.0.0
latest
npmnpm
Version published
Weekly downloads
0
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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.