M
M
mtNATS2022-02-14 06:20:59
PowerShell
mtNATS, 2022-02-14 06:20:59

Is it possible to remove all metadata from files with a command?

Tell me, is it possible to delete metadata from a file with a command or otherwise, but without using additional software? Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Viktor Taran, 2022-02-14
@shambler81

yes you can
w so
sudo apt-get install libimage-exiftool-perl

find . -type f -regex ".*\.\(jpg\|jpeg\|gif\|png\|JPG\|JPEG\|GIF\|PNG\)"  -exec grep -rl base64 {} \; -exec exiftool -all= {} \; -exec rm '{}_original' \;

respectively instead of find . you can put the path to the site find /var/www/site.ru or run the command inside the folder.
and for dessert Image
optimization

R
res2001, 2022-02-14
@res2001

Apparently, some media files (pictures, videos, ...) and metadata that are stored in the file itself are meant.
Such metadata can be removed, there are appropriate utilities, google it. I won’t tell you anything offhand, because. now far from it, but at one time faced with a similar issue and solved it quite successfully.

S
Saboteur, 2022-02-17
@saboteur_kiev

without using additional software

What do you think teams are?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question