hmatoba / minifyjpegasync Goto Github PK
View Code? Open in Web Editor NEWClient-side good quality resizing JPEG images without losing EXIF. To resize jpeg before upload.
License: MIT License
Client-side good quality resizing JPEG images without losing EXIF. To resize jpeg before upload.
License: MIT License
Is IPTC data also kept?
I am using your code in my application but it showing image on image box and i need to save the image by image src and hiting the webapi to the server. Please help me out. how to save image on
server.
here is the web api code
public string UploadFiles()
{
int iUploadedCnt = 0;
// DEFINE THE PATH WHERE WE WANT TO SAVE THE FILES.
//sPath = System.Web.Hosting.HostingEnvironment.MapPath("~/Images/");
// sPath = "\\\\user01nas\\usrtmp\\Salil\\PBE_Poc\\";
System.Web.HttpFileCollection hfc = System.Web.HttpContext.Current.Request.Files;
// CHECK THE FILE COUNT.
for (int iCnt = 0; iCnt <= hfc.Count - 1; iCnt++)
{
System.Web.HttpPostedFile hpf = hfc[iCnt];
if (hpf.ContentLength > 0)
{
// CHECK IF THE SELECTED FILE(S) ALREADY EXISTS IN FOLDER. (AVOID DUPLICATE)
if (!File.Exists(sPath + Path.GetFileName(hpf.FileName)))
{
// SAVE THE FILES IN THE FOLDER.
hpf.SaveAs(sPath + Path.GetFileName(hpf.FileName));
iUploadedCnt = iUploadedCnt + 1;
}
}
}
// RETURN A MESSAGE (OPTIONAL).
if (iUploadedCnt > 0)
{
return iUploadedCnt + " Files Uploaded Successfully";
}
else
{
return "Upload Failed";
}
as title
ImageDescription
Tag = 270 (10E.H)
Doesn't stay with the image's exif data. Is there a way to modify this so that the ImageDescription is still included with the image after it has been processed?
I tried to add in that tag on my own, but I couldn't quite figure it out.
[Long shot here, because this code has not be modified in many years...]
Looks like with Chromium's switch to respecting EXIF image orientation, this library now creates minified images that cut off part of the image. See here for an example: https://imgur.com/a/JdYooXC
The library continues to work fine in IE, but fails in Chrome and Edge (Chromium).
please, publish it to npm, also MinifyJpeg
package
Hello I have to save image by src. Now how to save it.
I am using angularjs and now i have ($scope.image) all the src.
and i want to save the image using webapi .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.