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

blueimp-load-image

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blueimp-load-image

JavaScript Load Image is a library to load images provided as File or Blob objects or via URL. It returns an optionally scaled, cropped or rotated HTML img or canvas element. It also provides methods to parse image metadata to extract IPTC and Exif tags a

  • 5.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
196K
decreased by-2.9%
Maintainers
1
Weekly downloads
 
Created

What is blueimp-load-image?

The blueimp-load-image npm package is a JavaScript library that provides functionality for loading and manipulating image files in the browser. It supports features such as image resizing, orientation correction, and metadata parsing, making it useful for web applications that handle image uploads and processing.

What are blueimp-load-image's main functionalities?

Load Image

This feature allows you to load an image from a file or URL and append it to the document body. The `maxWidth` option resizes the image to a maximum width of 600 pixels.

const loadImage = require('blueimp-load-image');

loadImage(
  fileOrUrl,
  function (img) {
    document.body.appendChild(img);
  },
  { maxWidth: 600 }
);

Parse Image Metadata

This feature parses the metadata of an image file, such as EXIF data. The parsed metadata is logged to the console.

const loadImage = require('blueimp-load-image');

loadImage.parseMetaData(file, function (data) {
  console.log(data.exif);
});

Correct Image Orientation

This feature corrects the orientation of an image based on its EXIF data. The corrected image is then appended to the document body.

const loadImage = require('blueimp-load-image');

loadImage(
  fileOrUrl,
  function (img) {
    document.body.appendChild(img);
  },
  { orientation: true }
);

Other packages similar to blueimp-load-image

Keywords

FAQs

Package last updated on 03 May 2020

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