Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@daiiz/dpi-aware-image

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@daiiz/dpi-aware-image

DPI aware image CustomElement

  • 2.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

dpi-aware-image

An img element which determine own physical width and height by considering source png image's DPI.

Installation

$ npm install @daiiz/dpi-aware-image

Development

$ npm install
$ npm run build
$ npm run demo

Open http://localhost:9001/demo/index.html

Usage

<style>
  /* Optional */
  dpi-aware-image {
    display: inline-block;
    --max-width: 100%;
    --max-height: 300px;
  }
</style>

<dpi-aware-image src='/demo/dist/icon.png'></dpi-aware-image>

Demos

FAQs

Package last updated on 05 Jul 2019

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc