Git Product home page Git Product logo

Comments (8)

tayloraswift avatar tayloraswift commented on June 6, 2024

hi, can you share the smaller image?

from swift-png.

ospfranco avatar ospfranco commented on June 6, 2024

Thanks for replying, I gave up on this idea. The image was just a screenshot I took from my desktop using cmd + shift + 4 nothing special about it. Feel free to close the ticket, otherwise just leave it open as future reference for people trying to reduce file size.

from swift-png.

tayloraswift avatar tayloraswift commented on June 6, 2024

okay, i'm still very interested in how the first image is half the size, so if you have time to attach a copy of it, that would be greatly appreciated :)

from swift-png.

ospfranco avatar ospfranco commented on June 6, 2024

Sorry, I already deleted the file I was using for testing.

from swift-png.

ospfranco avatar ospfranco commented on June 6, 2024

I can give you this image:

Screenshot 000814_1659371004 521134_optimized

I ran it through pngquant which was the library I was looking to replace with swift-png. The image size is as small as it gets (tinyPNG produces an even smaller file, but they are closed source). I would have liked for swift-png to have produced such a small file size, or at least close to it, even if it required tweaking.

from swift-png.

ospfranco avatar ospfranco commented on June 6, 2024

This is the original screenshot taken with cleanShotX

Screenshot 000814

from swift-png.

tayloraswift avatar tayloraswift commented on June 6, 2024

ah, that explains it! pngquant is a lossy image compressor, swift-png is a lossless image codec. lossy algorithms will of course produce smaller output files, but at the expense of information loss and ability to re-encode.

from swift-png.

ospfranco avatar ospfranco commented on June 6, 2024

Makes sense 👍 thanks!

from swift-png.

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.