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

image-convert

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-convert - npm Package Compare versions

Comparing version 0.1.307 to 0.1.308

6

index.js

@@ -8,3 +8,3 @@ // Copyright 2016 Arshpreet Wadehra

function dataURLtoFile(dataurl, filename) {
function dataURLtoFile(dataurl) {
var bstr = atob(dataurl), n = bstr.length, u8arr = new Uint8Array(n);

@@ -14,3 +14,3 @@ while(n--){

}
return new File([u8arr], filename);
return [u8arr];
}

@@ -34,3 +34,3 @@ module.exports = {

buffer = image(body).size(size).encode(output_format,{quality:quality});
callback(null,dataURLtoFile(buffer,new Date()+"."+output_format));
callback(null,buffer,dataURLtoFile(buffer));
});

@@ -37,0 +37,0 @@ }

{
"name": "image-convert",
"version": "0.1.307",
"version": "0.1.308",
"description": "convert image to different format like gif2jpg jpg2png also manage the quality & size",

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

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