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

jquery-imagepreview

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery-imagepreview - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

jquery.min.js

14

jquery.imagepreview.js

@@ -47,3 +47,3 @@ /**

var file = $(options.file)[0],
img = $(options.img)[0],
img = $(options.img),
preloadImg = $('<img style="position:absolute;top:-9999px;left:-9999px;visibility:hidden;" />').appendTo(document.body)[0],

@@ -59,5 +59,7 @@ blankSrc = $.browser.msie && $.browser.version <= 7 ?

);
img.style.width = Math.round(width * ratio) + 'px';
img.style.height = Math.round(height * ratio) + 'px';
img.src = src;
$.each(img, function(i, n){
n.style.width = Math.round(width * ratio) + 'px';
n.style.height = Math.round(height * ratio) + 'px';
n.src = src;
});
}

@@ -70,3 +72,5 @@ // get image size and show image

showImg(blankSrc, preloadImg.offsetWidth, preloadImg.offsetHeight);
img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale',src=\"" + src + "\")";
$.each(img, function(i, n){
n.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale',src=\"" + src + "\")";
});
} else {

@@ -73,0 +77,0 @@ preloadImg.onload = function() {

{
"name": "jquery-imagepreview",
"version": "1.0.0",
"version": "1.1.0",
"description": "基于jquery实现的本地图片预览功能",

@@ -5,0 +5,0 @@ "main": "jquery.imagepreview.js",

Sorry, the diff of this file is not supported yet

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