Main Menu

Recent posts

#91
Newbies / Re: Show coordinates with ° sy...
Last post by Phil Harvey - March 27, 2025, 08:53:38 PM
Ah yes... dueling edits. :P

I can't understand why the echo command would work and it doesn't work in ExifTool. :(

what about these intermediate steps?:

1. exiftool -echo °

2. exiftool -p ° FILE

3. exiftool -p "°" FILE

- Phil 
#92
Newbies / Re: Show coordinates with ° sy...
Last post by elhiero - March 27, 2025, 05:37:09 PM
My message was edited while you were replying ...
... because your previous question was edited while i was replying  ;D   ;D

Yes echo ° displays °
#93
Newbies / Re: Show coordinates with ° sy...
Last post by Phil Harvey - March 27, 2025, 04:13:11 PM
Did you try the "echo" command?

- Phil
#94
Newbies / Re: Show coordinates with ° sy...
Last post by elhiero - March 27, 2025, 04:11:35 PM
I use cmd, with Windows10
exiftool 13.25 64.zip

- Yes echo ° displays °

I also tried codepage 850, but then CaptionAbstract does not show 20.5° but 20.5 with a square character.
Charset has no effect on -c string

On windows 7 , it's worst, with chcp 65001,  sometimes cmd hangs or close itself when I copy the exiftool command containing °, before I can use Enter key ...

I can also try win11 later
#95
The "exiftool" Application / Re: Hasselblad Extension Tube
Last post by Phil Harvey - March 27, 2025, 03:40:30 PM
I got the files and should be able to take a look at this tomorrow.

- Phil
#96
Newbies / Re: Show coordinates with ° sy...
Last post by Phil Harvey - March 27, 2025, 03:35:51 PM
What shell are you using?  CMD or PS or something else?

Can you echo a ° character to the console using the system echo command?:

echo °

- Phil
#97
Newbies / Re: Show coordinates with ° sy...
Last post by elhiero - March 27, 2025, 02:18:29 PM
C:\>chcp 65001
Page de codes active : 65001

CaptionAbstract = 20°5 is shown
C:\>exiftool  -p "$Caption-Abstract, $GPSLatitude, $GPSLongitude" "C:\\test02.jpg"
20°5, 45 deg 10' 48.00" N, 5 deg 43' 12.00" E

-c option, the ° character is ignored
C:\>exiftool  -p "$Caption-Abstract, $GPSLatitude, $GPSLongitude" -c "%d° %d' %.2f\"" "C:\\test02.jpg"
20°5, 45 10' 48.00" N, 5 43' 12.00" E

-c option, the * character is displayed
C:\>exiftool  -p "$Caption-Abstract, $GPSLatitude, $GPSLongitude" -c "%d* %d' %.2f\"" "C:\\test02.jpg"
20°5, 45* 10' 48.00" N, 5* 43' 12.00" E

-p option : '@' character can replace ' deg'
C:\>exiftool  -p "$Caption-Abstract, ${GPSLatitude;s/ deg/@/}, $GPSLongitude" "C:\\test02.jpg"
20°5, 45@ 10' 48.00" N, 5 deg 43' 12.00" E

... but ° character cannot replace ' deg'
C:\>exiftool  -p "$Caption-Abstract, ${GPSLatitude;s/ deg/°/}, $GPSLongitude" "C:\\test02.jpg"
20°5, 45  10' 48.00" N, 5 deg 43' 12.00" E
#98
The "exiftool" Application / Re: Hasselblad Extension Tube
Last post by PatrickM - March 27, 2025, 01:27:16 PM
Big files ... went to Mail Drop ... average raw file is 213Mb

edit : in any event that was the wrong image. sorry. I've loaded a relevant £FR and FFF file to dropBox and you should get the invite message directly.

thank you
#99
Newbies / Re: Rename 1,000's of Files Ba...
Last post by Phil Harvey - March 27, 2025, 12:41:02 PM
This is entirely a problem with your PS script.  I don't know PS and don't recommend using it so I can't help here.

- Phil
#100
Newbies / Re: Rename 1,000's of Files Ba...
Last post by EverdarkOmnis - March 27, 2025, 11:41:27 AM
Quote from: Phil Harvey on March 26, 2025, 08:57:15 PMThis should get you most of the way there:

exiftool "-filename<%f.$filetypeextension" -v DIR

I've added the -v so you will have a record of what happened.

- Phil


mimeExt.ps1
"C:\Portable Program Files\exiftool\exiftool.exe" "-filename<%f.$filetypeextension" -v "F:\Sync\Knowledge\History\.United States of America\New York City NY\Grand Central Terminal"

PS F:\Sync\Development\PowershellScripts> .\mimeExt.ps1

This was the output...
At F:\Sync\Development\PowershellScripts\mimeExt.ps1:1 char:51
+ ... iles\exiftool\exiftool.exe" "-filename<%f.$filetypeextension" -v "F:\ ...
+                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token '"-filename<%f.$filetypeextension"' in expression or statement.
At F:\Sync\Development\PowershellScripts\mimeExt.ps1:1 char:85
+ ... s\exiftool\exiftool.exe" "-filename<%f.$filetypeextension" -v "F:\Syn ...
+                                                                ~~
Unexpected token '-v' in expression or statement.
At F:\Sync\Development\PowershellScripts\mimeExt.ps1:1 char:88
+ ... tension" -v "F:\Sync\Knowledge\History\.United States of America\New  ...
+                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token '"F:\Sync\Knowledge\History\.United States of America\New York City NY\Grand Central Terminal"' in
expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : UnexpectedToken