Giter VIP home page Giter VIP logo

Comments (4)

dfa1234 avatar dfa1234 commented on August 16, 2024

Hi @aviralgoyal can you send the image you used by mail [email protected] thank

from ngx-image-compress.

dfa1234 avatar dfa1234 commented on August 16, 2024

@aviralgoyal anyway I think I know what is your problem already.
You used ratio=99 and quality=100
First, ratio 99 is a strange choice (but it's up to you)
But quality 100 is just wrong. Your are compressing with 0% rate of loss in quality. That's can't happen. It will only increase the size.
Please use some realistic number (70 or 80 are very good quality already) Or anything bellow 100. 100 is a bad choice, maybe we could log some error for the user

from ngx-image-compress.

aviralgoyal avatar aviralgoyal commented on August 16, 2024

@dfa1234 I've sent you the mail with the image. This problem is happening in very few images. So I don't think 99 is the issue. But do let me know if something else is amiss. Thank you in advance.

from ngx-image-compress.

dfa1234 avatar dfa1234 commented on August 16, 2024

From the image you provided I see that an error is indeed throw.
So there is 2 different things here:

  • First I repeat that using 100 or 99 quality ratio in jpeg transformation is not enough, it's very likely that you will get a jpeg bigger than the original image - this point is closed for me. You can refer to the documentation about ratio compression in the READ ME of this repo
  • Your image in particular is throwing an error and it's a problem that could happening to this particular image (some defect in it). Or there is something happening in our code. So for this issue only, I marked the ticket "to be investigated", we will look from where this error is happening to understand the issue

from ngx-image-compress.

Related Issues (20)

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.