Remove EXIF from PEF Files (Pentax RAW File)

Started by Guzman, May 13, 2015, 03:05:26 PM

Previous topic - Next topic

Guzman

Hello.

I need remove all EXIF Metadata from PEF Files (Pentax RAW File)

exiftool -EXIF:All= RAW_PENTAX_K100.PEF

IFD0, IFD1 and IFD2 No deleted

You can download PEF files from:
http://www.rawsamples.ch/index.php/en/pentax


StarGeek

According to Wikipedia, the PEF format is based upon TIF, so the info in FAQ 7 would probably apply.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

I would not recommend deleting all metadata from RAW formats because the maker notes carry information that is required for the proper rendering of the image.

From the application documentation:

       exiftool -all= dst.jpg
            Delete all meta information from an image.  Note: You should NOT
            do this to RAW images (except DNG) since proprietary RAW image
            formats often contain information in the makernotes that is
            necessary for converting the image.


- 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 ($).

Guzman


Guzman

But if I run this command on RAW images (No DNG):

exiftool -EXIF:All= RAW_PENTAX_K100.PEF

Can it deleting information necessary to converting the image?

Phil Harvey

Yes.  But the way to tell for yourself is to try it, then try to view the raw image.

For raw images, I would recommend something more like this:

exiftool -xmp:all= -iptc:all= -artist= -copyright= -imagedescription= RAW_PENTAX_K100.PEF

- 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 ($).

Guzman

I need to delete all EXIF metadata except ImageDescription

C:\Users\Documents>exiftool -EXIF:All= -EXIF:ImageDescription="Detalle de la cantera de malaga" Chrysanthemum.jpg
    1 image files updated

C:\Users\Documents>exiftool -EXIF:All -s Chrysanthemum.jpg
ImageDescription                : Detalle de la cantera de malaga
XResolution                     : 96
YResolution                     : 96
ResolutionUnit                  : Unknown (4)
YCbCrPositioning                : Centered

Why is not deleted: XResolution, YResolution, ResolutionUnit and YCbCrPositioning  Meta Information?

Best Regards.


Phil Harvey

Quote from: Guzman on May 18, 2015, 06:04:47 AM
Why is not deleted: XResolution, YResolution, ResolutionUnit and YCbCrPositioning  Meta Information?

Because it is not EXIF.  See FAQ 3 if you need help with this.

- 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 ($).

Guzman

I Dont understand.

I remove All EXIF information:
C:\Users\drejonc\Documents>exiftool -EXIF:All= Chrysanthemum.jpg
    1 image files updated

I list All Exif Information, result empty:
C:\Users\drejonc\Documents>exiftool -EXIF:All -a -G1 -s Chrysanthemum.jpg

Insert imagedescription metadata
C:\Users\drejonc\Documents>exiftool -EXIF:imagedescription="Detalle de la cantera de malaga" Chrysanthemum.jpg
    1 image files updated

List EXIF Metadata
C:\Users\drejonc\Documents>exiftool -EXIF:All -a -G1 -s Chrysanthemum.jpg
[IFD0]          ImageDescription                : Detalle de la cantera de malaga
[IFD0]          XResolution                     : 96
[IFD0]          YResolution                     : 96
[IFD0]          ResolutionUnit                  : Unknown (4)
[IFD0]          YCbCrPositioning                : Centered

Why added this meta information:?
[IFD0]          XResolution                     : 96
[IFD0]          YResolution                     : 96
[IFD0]          ResolutionUnit                  : Unknown (4)
[IFD0]          YCbCrPositioning                : Centered

Regards.

Phil Harvey

Sorry.  I assumed you were looking at the JFIF information.  This wasn't the problem, but JFIF was involved.

When new EXIF is added, certain mandatory tags must be written. (See the EXIF tags documentation.)

ExifTool is taking the values of these mandatory tags from the JFIF information, which you haven't deleted.  (Thisis why the ResolutionUnit gets a funny value.)

- 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 ($).