Class CreationDateFromExifImageRenamer

java.lang.Object
de.aikiit.fotorenamer.image.CreationDateFromExifImageRenamer
All Implemented Interfaces:
Runnable

public final class CreationDateFromExifImageRenamer extends Object
This class transforms picture file names. All relevant files in the target directory get a new file name - if correct metadata can be extracted from the files' EXIF file headers.
A picture foo.jpg is renamed to 201108111100_foo.jpg if the picture's creation date was 2011-08-11 11:00.
Files without EXIF metadata are not touched at all.
Version:
2011-06-02, 13:22
Author:
hirsch
  • Constructor Details

  • Method Details

    • renameImage

      public final String renameImage(File imageFile)
      Extracts creation date from EXIF information and returns new filename. If an error occurs during EXIF data extraction the original filename is returned.
      Parameters:
      imageFile - Filename to renameFiles according to the subclass implementation.
      Returns:
      New filename that includes the image's creation date.
      See Also:
      • for more information about the file format.
    • run

      public final void run()
      Performs the renaming and updates the UI. All error handling is done in other methods.
      Specified by:
      run in interface Runnable
      See Also: