Giter Site home page Giter Site logo

Comments (9)

kognise avatar kognise commented on July 3, 2024 1

No problem at all! I will look into it and see what I can do to replicate that process.

from putting-the-you-in-cpu.

kognise avatar kognise commented on July 3, 2024 1

imgbot is great but i don't think it does as much as @FazlyMR was doing manually! would definitely be down to write a script.

from putting-the-you-in-cpu.

kognise avatar kognise commented on July 3, 2024

I definitely want to optimize the images. Ideally this would be done automatically, however, perhaps with a script. Would you be interested in working on that?

from putting-the-you-in-cpu.

FazlyMR avatar FazlyMR commented on July 3, 2024

Hmm, sadly I don't really have any coding/scripting experience (and no idea where to start to make that script to automate it and find the equivalent tools that I use)...

The way I did it is manually using GIMP, to convert from RGB to indexed colors and reduce the colors used, and ZopfliPNG (as part of Zopfli) as a last process to optimize the resulting PNG file itself.

from putting-the-you-in-cpu.

FazlyMR avatar FazlyMR commented on July 3, 2024

But in the meanwhile, would it be fine to submit a PR for my manual optimizations, which would still include the originals?

from putting-the-you-in-cpu.

FazlyMR avatar FazlyMR commented on July 3, 2024

No problem at all! I will look into it and see what I can do to replicate that process.

After some searching, I did found a library/CLI program called pngquant that did the same things that I did manually (I also realized that what I did is to quantize the colors, didn't know that terminology before or I just forgot). Not sure how to automate it though.

from putting-the-you-in-cpu.

kariyum avatar kariyum commented on July 3, 2024

ffmpeg is a great tool to consider. It is possible to make a bash script that will take a directory as an input that is full of images and produce another one with the same images but compressed. ffmpeg is known to be very useful in image compresseion and especially in video compression with very low/unnoticeable loss in quality.

from putting-the-you-in-cpu.

haneenmahd avatar haneenmahd commented on July 3, 2024

I definitely want to optimize the images. Ideally this would be done automatically, however, perhaps with a script. Would you be interested in working on that?

You can use imgbot GitHub app to automatically optimise the images for you.

See GitHub marketplace: https://github.com/marketplace/imgbot

from putting-the-you-in-cpu.

haneenmahd avatar haneenmahd commented on July 3, 2024

I'm interested in writing that script this weekend. If you had any ideas in your mind earlier about optimising it, can you brief it?

from putting-the-you-in-cpu.

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.