can't see result elsewhere than exiftool

Started by flyjac, November 30, 2016, 08:42:26 AM

Previous topic - Next topic

flyjac

Ok, I need the extra '"' when I use the shell "powershell", but I don't need it when I use "cmd" shell.
Let's see with cmd shell.
But with cmd shell, I can't see values when I use <exiftool -a -G0:1 -'lens*' -'*focal*'  ...>

I do the test you ask me, but still have the same result :(

Note that the only file with different size is yours.

Here are the files after/before and screenshot.

Hayo Baan

I'll look at both files tomorrow, but since you're on Windows you probably need to change the single quotes on the test command to double quotes (e.g. -"*lens*" etc.).

Also, in the directory listing you provide, I do not see the third file (the _original file) that should be there, something strange is happening. could it be you simply do not have enough permissions in the directory you are trying this in?
Hayo Baan – Photography
Web: www.hayobaan.nl

Hayo Baan

Looked at your files again and neither of the files has the changes in it so your command does not seem to be executed.
What is that P1010108sOut.jpg file and how did you get it? As it has the exact same size as the file I get when I execute exiftool -Lens="Canon 50mm FD 1.8" -LensModel="Canon 50mm FD 1.8" -FocalLength="50mm" -FocalLengthIn35mmFormat="100mm" P1010108s5.jpg, it looks like it is the result of the exiftool command, but how it got named P1010108sOut.jpg instead of the original, I don't know.

Also as I said, why does exiftool find 3 files (P1010108s.jpg, P1010108s.jpg_original, and P1010108sOut.jpg) where the dir command only shows two (and is missing the _original file that should definitely be there after executing the exiftool command that adds the lens info)? Also, as you can see, the file modification time wasn't changed, also indicating nothing has been updated.

Ah, I remember vaguely there might be an issue with the command-line (or powershell, don't remember exactly) on windows
where sometimes files show up with different names than in the GUI (Explorer). Open the directory in Explorer and see what it says there...
Hayo Baan – Photography
Web: www.hayobaan.nl

flyjac

Ok, I'm not in front of my computer, but I can give some answer.

First, P1010108sOut.jpg is the "correct_file", the file you make with your command. Sorry to don't say that before.

And yes, I found strange that exiftool find an P1010108s.jpg_original in the directory that I never found in windows, even in file explorer after refresh...
I also have sometimes more file with exiftool  than I can see with windows. Maybe exiftool see erased file on directory, than windows ignore? The file you can restore when you go on the rubbish tools?

I will try commands with " instead of ' tomorrow morning, I can't be in front on my computer before.

And maybe you can tell me where I can found exiftool previous version, to see if it works better on windows?

Hayo Baan

Ah, so the Out file was the one I produced earlier, that explains its size :)

So, you actually confirm my suspicion that it is Windows that is doing something strange with the file system. I don't know if old versions are still available for download, but I don't think that they would help; it's Windows itself that's doing something strange. Can you run dir /a in that directory? That should show us e.g. hidden files as well.

Here's another thought, perhaps its because the files are in the "My Images" directory, so let's try this: go to the root of your drive and create a new directory there then copy one of the files there and then run the exiftool command on that file.

cd \
mkdir TEST
copy "D:\Documents\Mes images\test\2016\test\tmp\P1010108s5.jpg" .
dir /a
exiftool -Lens="Canon 50mm FD 1.8" -LensModel="Canon 50mm FD 1.8" -FocalLength="50mm" -FocalLengthIn35mmFormat="100mm" P1010108s5.jpg
dir /a

Hayo Baan – Photography
Web: www.hayobaan.nl

flyjac

Ok I will do that tomorrow morning. Sorry, I can't do it before.

And nobody are using exiftool on windows to confirm I'm not the only one with this problem???

flyjac

Ok, with " instead of ' I can now see display of exiftool (like I saw it before with powershell).
But still don't see it in LR or other windows software :(

And still don't see ghost original file, and result file keep same size and don't have the size you had when yon ran the command.

See result in my screenshot.

Very very strange all this...

Hayo Baan

This is weird! ExifTool finds the files (and reports the updated content), but they don't show up in the DIR ??? Stranger: the jpg has not changed at all (modification date is unchanged). No wonder you are not seeing the updates in LR; the file hasn't changed at all.

If you have anti virus software running, what software are you running? What happens if you disable it?

Also, can you add -FileName and -Directory to the test command: exiftool -a -G0:1 -FileName -Directory -"lens*" -"*focal*" *
This will show us where exiftool thinks the files are.

(What windows version are you using?)
Hayo Baan – Photography
Web: www.hayobaan.nl

flyjac

yes, unbelievable...

exiftool find files in current dir.


C:\exiftool>exiftool -a -G0:1 -FileName -Directory -"lens*" -"*focal*" *
======== P1010108s5.jpg
[File:System]   File Name                       : P1010108s5.jpg
[File:System]   Directory                       : .
[MakerNotes:Panasonic] Lens Type                : NO-LENS
[MakerNotes:Panasonic] Lens Serial Number       : 0000000
[MakerNotes:Panasonic] Lens Firmware Version    : 0.0.0.0
[EXIF:ExifIFD]  Lens Model                      : Canon 50mm FD 1.8
[XMP:XMP-aux]   Lens                            : Canon 50mm FD 1.8
[EXIF:ExifIFD]  Focal Length                    : 50.0 mm
[EXIF:ExifIFD]  Focal Length In 35mm Format     : 100 mm
[Composite]     Focal Length                    : 50.0 mm (35 mm equivalent: 10
.0 mm)
======== P1010108s5.jpg_original
[File:System]   File Name                       : P1010108s5.jpg_original
[File:System]   Directory                       : .
[MakerNotes:Panasonic] Lens Type                : NO-LENS
[MakerNotes:Panasonic] Lens Serial Number       : 0000000
[MakerNotes:Panasonic] Lens Firmware Version    : 0.0.0.0
[EXIF:ExifIFD]  Focal Length                    : 0.0 mm
[EXIF:ExifIFD]  Focal Length In 35mm Format     : 0 mm
[Composite]     Focal Length                    : 0.0 mm
======== P1010108sOut.jpg
[File:System]   File Name                       : P1010108sOut.jpg
[File:System]   Directory                       : .
[MakerNotes:Panasonic] Lens Type                : NO-LENS
[MakerNotes:Panasonic] Lens Serial Number       : 0000000
[MakerNotes:Panasonic] Lens Firmware Version    : 0.0.0.0
[EXIF:ExifIFD]  Lens Model                      : Canon 50mm FD 1.8
[XMP:XMP-aux]   Lens                            : Canon 50mm FD 1.8
[EXIF:ExifIFD]  Focal Length                    : 50.0 mm
[EXIF:ExifIFD]  Focal Length In 35mm Format     : 100 mm
[Composite]     Focal Length                    : 50.0 mm (35 mm equivalent: 10
.0 mm)
    3 image files read

C:\exiftool>


Note that if I compare all exiftool display, the only difference between 2 fils are modification date showing that file has been modified...
And size displayed by exiftool is same as you modified file.


[ExifTool]      ExifTool Version Number         : 10.36
[File:System]   File Name                       : P1010108s5.jpg
[File:System]   Directory                       : .
[File:System]   File Size                       : 68 kB
[File:System]   File Modification Date/Time     : 2016:12:03 10:26:55+01:00
[File:System]   File Access Date/Time           : 2016:12:03 10:26:55+01:00
[File:System]   File Creation Date/Time         : 2016:12:03 10:21:02+01:00
[File:System]   File Permissions                : rw-rw-rw-


I'm using Windows 7, nothing special until I use exiftool  :o

I also look if I find the _original file in garbage, but no.

flyjac

Stop, I found the problem!

This is totally my fault, even if it was tricky.
Exiftool is not the problem, the problem is note antivirus but nearly, good clue!
In fact my firewall (comodo) didn't know that new exe (Exiftool) in windows dir, and automatically execute it in the sandbox. So it was not seen by all windows process, except exiftool. And exiftool can see it, as he has sandbox environment...

So I'm very sorry to spent your time for this, and thanks so much for the help!
I will found a solution for exiftool to be accepted as a "normal" program.

Thanks again!

Hayo Baan

Ah, that's a new one, glad you found it ;D

It should be possible to add exiftool as valid program to comodo so this won't happen in the future. I googled a bit and found this page on the comodo website, I think this should guide you further.
Hayo Baan – Photography
Web: www.hayobaan.nl

flyjac

Yes, I already make a rule to have it like a safe program.

Now it works like a charm :) I use it with LR and Lenstagger also without any problem (except it doesn't offer to change used focal)

Thanks again for your help!!!