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

jimp

Package Overview
Dependencies
Maintainers
1
Versions
281
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jimp - npm Package Compare versions

Comparing version 0.2.26 to 0.2.27

2

browser/examples/jimp-worker.js

@@ -8,3 +8,3 @@ importScripts("../lib/jimp.min.js");

.greyscale() // set greyscale
.getBase64(Jimp.MIME_JPEG, function (err, src) {
.getBase64(Jimp.AUTO, function (err, src) {
self.postMessage(src);

@@ -11,0 +11,0 @@ self.close();

@@ -66,3 +66,3 @@ # Jimp ... in a browser #

```html
<script src="https://cdn.rawgit.com/oliver-moran/jimp/v0.2.26/browser/lib/jimp.min.js"></script>
<script src="https://cdn.rawgit.com/oliver-moran/jimp/v0.2.27/browser/lib/jimp.min.js"></script>
```

@@ -69,0 +69,0 @@

@@ -64,2 +64,5 @@ // The MIT License (MIT)

// delete the write method
delete Jimp.prototype.write;
// Override the nodejs implementation of Jimp.read()

@@ -66,0 +69,0 @@ delete Jimp.read;

{
"name": "jimp",
"version": "0.2.26",
"version": "0.2.27",
"description": "An image processing library written entirely in JavaScript (i.e. zero external or native dependencies).",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -236,3 +236,3 @@ # Jimp #

```js
image.getBuffer( mime, cb ); // Node-style callback wil be fired with result
image.getBuffer( mime, cb ); // Node-style callback will be fired with result
```

@@ -248,2 +248,12 @@

If `Jimp.AUTO` is passed as the MIME type then the original MIME type for the image (or "image/png") will be used.
### Data URI ###
A Base64 data URI can be generated in the same way as a Buffer, using:
```js
image.getBase64( mime, cb ); // Node-style callback will be fired with result
```
### PNG and JPEG quality ###

@@ -250,0 +260,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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