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

  • pnpm adds support for delayed dependency updates

    #​593 — September 16, 2025 Read on the Web 🗓️ We’re taking next week off, so we will be back in your inbox again on Tuesday, September 30.__Peter Cooper, your editor Node.js v24.8.0 (Current) Released — The big new feature is added support for inspecting HTTP/2 network calls made from Node in Chrome DevTools. There have

    Posted by Posted on September 16, 2025
    0
  • Package efficiency and dependency hygiene

    #​752 — September 12, 2025 Read on the Web If you have any interest in music and being able to render music or generate music with JavaScript, be sure to check out the very end of this issue where we’ve dedicated an entire section to the topic 🙂__Your editor, Peter Cooper JavaScript Weekly How to Keep

    Posted by Posted on September 12, 2025
    0
  • A significant supply chain attack on the npm ecosystem

    #​592 — September 9, 2025 Read on the Web A Major Supply Chain Attack Hits the npm Ecosystem — In July, Socket warned us about a phishing campaign targeting npm package publishers. Sadly, a prolific package author (among others, like DuckDB, who explain how the attack worked on them) fell victim to the scam, resulting

    Posted by Posted on September 9, 2025
    0
  • Why browsers throttle JavaScript timers (and what to do about it)

    #​751 — September 5, 2025 Read on the Web JavaScript Weekly Mediabunny: A Complete Media Toolkit for JavaScript — Supporting both browsers and Node.js, this library lets you read, write and convert popular media file formats (e.g. MP4, MP3, and more) without needing to lean on dependencies like FFmpeg. You can make thumbnails, extract metadata,

    Posted by Posted on September 5, 2025
    0
  • The latest on Oracle’s hold on JavaScript

    #​750 — August 29, 2025 Read on the Web JavaScript Weekly An Illustrated Guide to Big O and Time Complexity — A fantastic JavaScript-oriented, interactive, visual essay about Big O notation and its role in describing algorithmic complexity. This is a beautiful bit of work, even if you’re already wise to O(log n) and O(n^2).

    Posted by Posted on August 29, 2025
    0
  • The productivity benefits from type stripping

    #​591 — August 26, 2025 Read on the Web How We Migrated Our Rush.js Monorepo to Node Type Stripping — Since v23.6 (and in LTS since v22.18.0), Node has supported running (most) TypeScript code by stripping the types out first. The Calm team was excited about the potential for improving productivity and DX, and set

    Posted by Posted on August 26, 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
  • pnpm adds support for delayed dependency updates
  • Package efficiency and dependency hygiene
  • A significant supply chain attack on the npm ecosystem
  • Why browsers throttle JavaScript timers (and what to do about it)
  • The latest on Oracle’s hold on JavaScript
https://flatlogic.com/generator
COPYRIGHT © 2025 - Codepolice