Comparing version 0.2.26 to 0.2.27
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2307550
9477
457
18