1

I am trying to keep certain metadata with spatie/image-optimizer image optimization library, but am not successful.

Is It even possible ?

I see no variables for metadata. Just strip all. Any help is appreciated.

(new OptimizerChain())
        ->addOptimizer(new Jpegoptim([
            $jpegQuality,
            '--strip-all',
            '--all-progressive',
        ]))
Eligijus
  • 634
  • 1
  • 6
  • 15
  • What do you mean by "keep certain metadata"? Do you only want to keep some metadata and strip some other metadata? As you see, there is only the option to strip all, or keep all. Is that the problem you are facing? You probably need some other tool to selectively copy only some of the metadata to the output. Have you tried any? For example http://www.ozhiker.com/electronics/pjmt/ – Palo Dec 29 '21 at 20:05
  • @Palo I am trying to keep certain metadata. Like Coordinates or Device. I did not found any information for spatie and searching for other tools. – Eligijus Dec 30 '21 at 08:55

0 Answers0