http://qs321.pair.com?node_id=767190


in reply to Change Image File Timestamp to Match EXIF Data

Cool utility. A small suggestion for the next version: Instead of die()ing if it can't read a file, perhaps just warn() and skip to the next file so the rest still get processed.

Replies are listed 'Best First'.
Re^2: Change Image File Timestamp to Match EXIF Data
by toolic (Bishop) on Jun 01, 2009 at 15:32 UTC
    Does the -r file test guarantee that ImageInfo will be successful? I wonder if it would be better to omit the file test, then analyze the return status of ImageInfo to determine whether to proceed with processing. Of course, ImageInfo might just die anyway, in which case an eval might be useful to capture the failure.