Skip to content

ReessKennedy/Compression-Enhancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PNGQuantDatePreservation

Preserve original creation date when using PNGQuant - GH Link

What ⚡

Adds date preservation to the popular PNG QUANT compression algorithm when running on a mac.

Why 🤷‍♂️

Keeping creation dates is important to me and it is annoying that when PNG Quant is run it strips out creation date meta.

How 📋

I just have a folder I save screenshots to and then I set the Config file of this script to the path of that folder and then I manually run this script at the end of each day to compress the files I've save as I review them and see which I need and which I can delete.

I should use Alfred or some automatter to improve this.

To Dos 💡

Compatibility

I did this quickly to work for me on my Mac but could be extended to work for more people in various environments. Not sure whether suing Stet or Touch is more universal ... would need to look into this and test.

Changelog

2024-05-02

Fixing date update

Something broke with SetFile command after upgrading to Ventura. The error I got is as follows:

me@mymachine ~ % SetFile 
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcr

Solved by doing the following.

  1. Completely remove command line tools using this kind of dangerous method: sudo rm -rf /Library/Developer/CommandLineTools
  2. Reinstall it - sudo xcode-select --install Other standard ways to uninstall and reinstall did not work.

About

This adds date preservation to PNGQuant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages