💯
TIL
  • TIL
  • Different options for doing LLM inference
  • Generate Subtitles locally using whisper
  • Compressing images from the CLI
  • Running parallel Ollama inference
  • Fetching Train availability in IRCTC
  • Changing Git Commit Email Address
  • Clone any website to local using Httrack
  • Adding Drag drop from terminal in Mac OS
  • Minimum Effort
    • YouTube Transcript Formatter
    • Virtual Talking AI companion to help out in tough times
    • Super fast voice based translation system
  • Proud Memories
    • Conducting an LLM Workshop
    • Honours degree from Education Minister
    • GIDS Conference Participant from TW
    • Speaking at MEC.Conf
    • Being a judge at Hack4Tomorrow hackathon
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub

Compressing images from the CLI

Easy script using imagemagick to compress images from the terminal

Steps

  • Move all your image files to a folder

  • calculate it's folder size using du

  • create a copy of the folder.

  • install imagemagick

brew install imagemagick

  • in this folder, perform the following actions:

mkdir compressed
for i in *; do convert $i -resize 40% compressed/$i; done;

The above will compress all images by making the size 40% of the initial size and will move it to a folder called compressed

  • Check folder structure again using du

  • if it's still too much, repeat again but this time reduce quality to even lower

PreviousGenerate Subtitles locally using whisperNextRunning parallel Ollama inference

Last updated 1 year ago

Was this helpful?