DevToys icon indicating copy to clipboard operation
DevToys copied to clipboard

Feature Request: A few things for the Image Compressor

Open Carterpersall opened this issue 4 years ago • 0 comments

What's the Problem?

  1. It would be nice if there was a dropdown or a slider to select the compression strength the program uses. It currently uses 5 and I would prefer 9 to prioritize small size over speed. And I'm sure that many people would want the opposite and have worse but faster compression.

  2. It would be super useful if the program was able to scan a directory recursively, recompress the files, then replace all the files with the recompressed versions

Solution/Idea

  1. Assign the slider/dropdown's value to a variable and when ect.exe is called, use the variable to set the compression strength.

  2. I only really know PowerShell scripting so my thinking will be based on that logic. What could be done is get all the PNG/JPG files in a directory(I would use Get-ChildItem -recurse), and for each file, I would save the file size to a variable and then run ect.exe on each file and save the new file in a temp directory with the same name, then check if the file is smaller, and if it is, overwrite the old file, then after finishing that directory, move on to the next directory(Get-ChildItem -recurse would automatically do that).

Alternatives

  1. There isn't an alternative that does this that I know of. I might write a script in PowerShell to do it myself, but I don't have the time at the moment.

Priorities

Capability Priority
Slider/Dropdown to select compression strength Must
Add recursive compression Could
Add a separate button to replace all added files with compressed versions Could

DevToys Version

Version 1.0.6.0 | X64 | RELEASE | c032ebb | c032ebb

Comments

No response

Carterpersall avatar Apr 06 '22 17:04 Carterpersall