Giter Club home page Giter Club logo

minifyjpegasync's People

Contributors

hmatoba avatar tonyb1974 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

minifyjpegasync's Issues

IPTC ?

Is IPTC data also kept?

How to save compress image using webapi to server.

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";
        }

EXIF description stripped

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.

Issue with Chromium 81+ Due to Image Orientation Switch

[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).

How to save image throght image SRC

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 .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.