Lines Matching refs:FILE
43 static char * strftime_args = NULL; // Format for new file name.
75 static char * ExifXferScrFile = NULL;// Extract Exif header from this file, and
81 static char * CommentSavefileName = NULL; // Save comment to this file.
82 static char * CommentInsertfileName = NULL; // Insert comment from this file.
88 static int ShowFileInfo = TRUE; // Indicates to show standard file info
89 // (file name, file size, file date)
108 if (CurrentFile) fprintf(stderr,"in file '%s'\n",CurrentFile);
129 // Set file time as exif time.
144 FILE * file;
148 file = fopen(TempFileName, "w");
149 if (file == NULL){
150 fprintf(stderr, "Can't create file '%s'\n",TempFileName);
151 ErrFatal("could not create temporary file");
153 fwrite(Comment, CommentSize, 1, file);
155 fclose(file);
180 file = fopen(TempFileName, "r");
181 if (file == NULL){
182 ErrFatal("could not open temp file for read");
185 // Read the file back in.
186 CommentSize = fread(Comment, 1, 999, file);
188 fclose(file);
275 // Scan date is not in the file yet, and it doesn't have one built in. Add it.
350 // Apply the specified command to the JPEG file.
361 // Generate an unused temporary file name in the destination directory
369 ErrFatal("Cannot find available temporary file name");
378 // Input file.
384 // Needs an output file distinct from the input file.
407 // Don't delete original file until we know a new one was created by the command.
413 ErrFatal("specified command did not produce expected output file");
419 // check if this file should be skipped based on contents.
541 int ExtensionPart; // Where the file extension starts.
571 printf("File '%s' contains no exif date stamp. Using file date\n",FileName);
572 // Use file date/time instead.
647 // Generate a suffix for the file name if previous choice of names is taken.
770 // Do selected operations to one file at a time.
794 // Store file date/time.
801 ErrFatal("No such file");
807 printf("Skipping readonly file '%s'\n",FileName);
816 // Applying a command is special - the headers from the file have to be
817 // pre-read, then the command executed, and then the image part of the file read.
848 // The file is not there anymore. Perhaps the command
968 // Read a new comment section from file.
970 FILE * CommentFile;
1034 FILE * CommentFile;
1045 ErrFatal("Could not write comment file");
1048 printf("File '%s' contains no comment section\n",FileName);
1103 printf("File '%s' contains no Exif timestamp to change\n", FileName);
1133 // Remove any .old file name that may pre-exist
1136 // Rename the old file.
1139 // Write the new file.
1142 // Copy the access rights from original file
1144 // set Unix access rights and time to new file
1154 // Now that we are done, remove original file.
1157 // move back the backup file
1164 // Set the file date to the date from the exif header.
1166 // Converte the file date to Unix time.
1181 printf("Error: Could not change time of file '%s'\n",FileName);
1186 printf("File '%s' contains no Exif timestamp\n", FileName);
1219 " -te <name> Transfer exif header from another image file <name>\n"
1222 " -de Strip Exif section (smaller JPEG file, but lose digicam info)\n"
1231 " -cs <name> Save comment section to a file\n"
1232 " -ci <name> Insert comment section from a file. -cs and -ci use same naming\n"
1237 " -ft Set file modification time to Exif time\n"
1238 " -dsft Set Exif time to file modification time\n"
1240 " Rename files according to date. Uses exif date if present, file\n"
1245 " '%%f' as part of the string will include the original file name\n"
1283 " -st <name> Save Exif thumbnail, if there is one, in file <name>\n"
1284 " If output file name contains the substring \"&i\" then the\n"
1285 " image file name is substitute for the &i. Note that quotes around\n"
1311 " -nofinfo Don't show file info (name/size/date)\n"
1320 " Apply 'command' to every file, then re-insert exif and command\n"
1321 " sections into the image. &i will be substituted for the input file\n"
1496 DoReadAction = TRUE; // Rename doesn't modify file, so count as read action.
1550 // Set file time to date/time in exif
1596 // File matching and selection
1642 printf("Error: By specifying \"&i\" for the thumbail name, your original file\n"