hvdwolf / jExifToolGUI

jExifToolGUI is a multi-platform java/Swing graphical frontend for the excellent command-line ExifTool application by Phil Harvey
https://hvdwolf.github.io/jExifToolGUI/
GNU General Public License v3.0
453 stars 37 forks source link

Modifying a larger number of pictures in a batch will fail #323

Open alyaksander opened 5 months ago

alyaksander commented 5 months ago

Version

Describe the bug I can't modify date and time to a larger number of files at once. I get the error:

IOException error Cannot run program "C:/Users/alyak/Desktop/jExifTool/exiftool.exe": CreateProcess error=206, The filename or extension is too long

To Reproduce Steps to reproduce the behavior:

  1. Select 1,000 or more pictures and go to "Date/Time" menu.
  2. Click on ''Modify Date/Time''.
  3. Set the dates/times you want and clock "Ok".
  4. Error will show.

Error

hvdwolf commented 5 months ago

With too many files the command line gets too long. This bug has been mentioned before. I personally never used more that approx. 50 files at a time. I stopped development, but as it is open source, anyone can continue.

To resolve this issue the program should check the total length of the command line, compare it with the allowed length per operating system, and if longer than allowed, write the command line per image to a text file that can be used as input for exiftool. Another option is if all files are in one folder, to do it folder based. In that way exiftool will act on a folder and what is in there, and not per file. This might also be be done via the command option.