Skip to content

Codepolice

  • ⤫

Batch Optimize Png, Jpg, and Gif images in Windows (and Visual Studio)

Posted by Judy Alvarez Posted on February 28, 2022March 3, 2022
0

A couple of days ago I found an awesome extension to Visual Studio that lets you just right-click a folder in VS and it will optimize all the images in it with the help of SmushIt and PunyPng. I have tried to find a tool like this for a long time but haven’t found anything that suits my need. I also wanted this functionality in Windows outside of Visual Studio so I downloaded the code and made an extremely simple command prompt application for it. It would, of course, be even better if you could just right-click a folder in Windows to run it but I’m a lazy person and this works for me.

Just run BatchOptimzeImage.exe <foldername> and it will optimize all the images in that folder. I won’t give so much more instructions than this. And again .. ALL credits go to Mads Kristensen for this one. I just wanted to put this out there so you don’t have to spend the hour I spent to make a console app out of it.

Categories: JavascriptTagged: .net core mvc upload file, .net core mvc vs .net framework mvc, .net mvc angular, .net mvc dropdownlist, .net mvc file upload, asp net core mvc login and registration without identity, asp net mvc 4 runtime, asp net mvc 5 tutorial pdf, asp net mvc authentication and authorization, asp net mvc checkbox list, asp net mvc code generator, asp net mvc default page, asp net mvc nuget, asp net mvc report builder, asp net mvc reporting, asp net mvc security best practices, asp net mvc single page application, asp net mvc ui, essential docker for asp net core mvc, learn .net mvc, mvc tutorial .net, net core 5 mvc, net mvc 4, net mvc form, pro asp net mvc 4, pro asp net mvc 4 pdf, push notification in asp net mvc, using angular with asp net mvc, view in asp net mvc, www asp net mvc

Post navigation

Previous Previous post: Copy a folder with Robocopy
Next Next post: Automatically switch spell check language/dictionary as you type in Firefox

Related Posts

  • Building JavaScript tools in a single HTML file

    #​765 — December 12, 2025 Read on the Web JavaScript Weekly Useful Patterns for Building HTML Tools — In many situations, you don’t need a full-on framework to build useful tools; just HTML, JavaScript and CSS in a single file will do the job fine. Simon’s become a bit of an expert by rolling out

    Posted by Posted on December 12, 2025
    0
  • How the Seattle Times is using pnpm

    #​604 — December 9, 2025 Read on the Web 🗓️ A quick notice that Node Weekly will be moving to Thursdays in January 2026, as part of a schedule reshuffle for most of our newsletters. We still have one more week before the Christmas break, though, so we’ll be back next Tuesday with our 2025 roundup!__Your editor,

    Posted by Posted on December 10, 2025
    0
  • What’s the story? JavaScript’s 30!

    #​764 — December 5, 2025 Read on the Web JavaScript Weekly 🎉  JavaScript Turns 30 Years Old  🎉 Back in May 1995, a 33 year old Brendan Eich built the first prototype of JavaScript in just ten days, originally codenamed Mocha (and then LiveScript). On December 4, 1995, Netscape and Sun Microsystems officially announced ‘JavaScript’ in a

    Posted by Posted on December 5, 2025
    0
  • Comparing performance across Node versions and ARM vs x86

    #​603 — December 2, 2025 Read on the Web Tinybench 6.0: A Tiny, Simple Benchmarking Library — Uses whatever precise timing capabilities are available (e.g. process.hrtime or performance.now). You can then benchmark whatever functions you want, specify how long or how many times to benchmark for, and get a variety of stats in return –

    Posted by Posted on December 2, 2025
    0
  • Algorithms visualized and demonstrated in JavaScript

    #​763 — November 28, 2025 Read on the Web JavaScript Weekly Over 150 Algorithms and Data Structures Demonstrated in JS — Examples of many common algorithms (e.g. bit manipulation, Pascal’s triangle, Hamming distance) and data structures (e.g. linked lists, tries, graphs) with explanations. Available in eighteen other written languages too. Oleksii Trekhleb et al. TypeScript: From

    Posted by Posted on November 28, 2025
    0
  • Guess who’s back, back again? Shai-Hulud.

    #​602 — November 25, 2025 Read on the Web How a Summer in Abruzzo Helped Bring Type Stripping to Node.js — Node.js TSC member and committer Marco tells the personal tale of what it took to bring type stripping (now considered stable) to Node. It’s neat to get the back story. He’s now working on

    Posted by Posted on November 25, 2025
    0
Judy Alvarez

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Codepolice

  • Github
  • Atlassian
  • Flatlogic
  • Xero
  • Jetbrains
  • Figma
  • Building JavaScript tools in a single HTML file
  • How the Seattle Times is using pnpm
  • What’s the story? JavaScript’s 30!
  • Comparing performance across Node versions and ARM vs x86
  • Algorithms visualized and demonstrated in JavaScript
https://flatlogic.com/generator
COPYRIGHT © 2025 - Codepolice