Menu

#409 File extensions of saved files have numbers appended to them

open
nobody
5
2019-10-07
2016-09-14
No

I am using ufraw-batch and calling it from a Python script (minimal example below). I am converting hundreds of images. If I am browsing the output directory in Windows Explorer while running the script, about half of the saved images will not end in .tif as specified, but .tif4460 -- with a different 4- or 5-digit number each time. See the attached image. In the set I am looking at right now, I see: .tif7868 .tif100036 .tif9132 .tif4866.

I wish I could work on a Linux machine, but unfortunately I cannot. Is this file-naming caused by Windows hogging the new files to catalog them and make thumbnails before they are finished being written to? Is there any way to fix that behavior from either within UFRaw or as a system setting within Windows?

I have IrfanView associated with the .tif extension on my machine.

UFRaw 0.19.2
Windows7 Enterprise
Intel Xeon CPU E5-2650 v3
64.0 GB RAM
64-bit OS

Please let me know if I can provide any more helpful details.

Thank you,
Rebecca

import os

cr2image = FULL_PATH_TO_CR2
outputfile = OUTPUTDIR+'\test.tif'

ufrawsuccess = os.system('ufraw-batch {0} --wb=camera \
--exposure=1.00 \
--curve=linear \
--base-curve=linear \
--restore=clip \
--clip=digital \
--gamma=0.45 \
--saturation=1.0 \
--linearity=0.1 \
--out-type=tif \
--out-depth=8 \
--overwrite \
--output={1} \
--overwrite \
--exif'.format(cr2image,outputfile))

1 Attachments

Discussion

  • Niels Kristian Bech Jensen

    I suspect the problem is related to these bugs in Exiv2: http://dev.exiv2.org/issues/1227 and http://dev.exiv2.org/issues/1222 (UFraw uses Exiv2 for handling EXIF data).

    To test this you can replace --exif with --noexif in your Python script. Please report if it makes a difference.

    Regards,
    Niels Kristian

     

    Last edit: Niels Kristian Bech Jensen 2016-09-23
  • Niels Kristian Bech Jensen

    Another question: Are the files on a network og cloud drive? If they are please place them on the local hard drive and test if it works.

    Regards,
    Niels Kristian

     
  • nickj2000

    nickj2000 - 2019-10-07

    I have this a emprobl as llwe, also the words are inggett messed up when using a mobile.

    saving manually from ufraw on owswind.

     
  • nickj2000

    nickj2000 - 2019-10-07

    Am on a computer now. The file seems to be saved correctly then saved again with the PID appended to the file name. This is on windows with ver 0.19.2

     

Log in to post a comment.

MongoDB Logo MongoDB