keeping the background blur in the photo

Started by naisam, October 14, 2022, 05:42:14 PM

Previous topic - Next topic

naisam

I used the tool to remove metadata from .HEIC images
./exiftool -all= --ICC_Profile:all -overwrite_original -tagsfromfile @ -CreateDate -DateTimeOriginal /home/xyz/
It removed the background blur from images as well. Is there anyway to retain the background blur and orientation of the image?

Phil Harvey

I don't know where the information relating to background blur is stored, but you should be able to figure it out.  I would first try starting from the original file but change the command to preserve the MakerNotes and Make/Model, and Orientation to preserve the orientation:

exiftool -all= --ICC_Profile:all -overwrite_original -tagsfromfile @ -CreateDate -DateTimeOriginal -makernotes -make -model -orientation /home/xyz/

If that doesn't work, try also preserving LensInfo, LensMake and LensModel.

If that doesn't work, then start from the original and delete metadata a bit at a time until you lose the blurred background.

Let us know what you discover.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

It would be interesting to see where the blur information is stored.  If you could send me two sample pictures that are identical except for a different background blur I could look into this.  My email is philharvey66 at gmail.com

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).