ajslater / picopt

A multi format lossless image optimizer that uses external tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

picopt could use a --preserve option

rallant92 opened this issue · comments

When compressing 10 to 20 year old photo collections, I don't want their attributes like time changed. I want the files to be the same, only smaller.

The --preserve option usually controls this. I see this from 'man cp':

       -p     same as --preserve=mode,ownership,timestamps

       --preserve[=ATTR_LIST]
              preserve the specified attributes (default: mode,ownership,time‐
              stamps),  if  possible  additional  attributes:  context, links,
              xattr, all

Preserving the mode and ownership are important too, so that other users can access the files after shrinkage.

picopt 4.0.0 includes a --preserve option. However it does not include an attribute list.

  -p, --preserve        Preserve file attributes (uid, gid, mode, mtime) after
                        optimization.