+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 20 of 20
  1. #11

    Default

    This is good news. Thanks Alex!
    For me a command line tool is good enough (but I'm a linux man ;-)

    In my script I was working the exact opposite route.
    I.e., I was creating a rawRename oldname.crw newname.crw
    Which would move the crw and all the related files (after modifying their embedded references to the raw file). I.e.,
    oldname.ufraw -- ufraw -- ,
    oldname.pp2 -- rawtherapee -- ,
    oldname.crw.xmp -- bibble 5 --,
    oldname.bib -- bibble 4 --,
    oldname.xcf -- gimp --,
    oldname.tif -- dpp in my workflow--
    and of course oldname_lzn.jpg
    etc.
    (It seems I can not settle on using just one program...)
    But I'm ok with your suggestions as well.

    A questions about the exportOptions path.
    What would happen with the export directory. Would this remain the old value or would you do some magic to handle it more like a relative path?
    I guess the latter is quite tricky to do.
    (E.g., lzrename xxx/yyy/zzz_lzn.jpg aaa/bbb/ccc_lzn.jpg
    where zzz_lzn.jpg has an export path xxx/yyy/export/zzz_exported.jpg this could be renamed to aaa/bbb/export/zzz_exported.jpg)

    I'll put my library reorganisation exercise on hold for now.
    Thanks!

  2. #12
    Join Date
    May 2008
    Location
    Montreal
    Posts
    33

    Default

    > For me a command line tool is good enough (but I'm a linux man ;-)

    So am I, and we'll start from a command-line tool, adding GUI later.

    > In my script I was working the exact opposite route.
    > I.e., I was creating a rawRename oldname.crw newname.crw

    I thought about this but if lzn and raw are in different directories, we can recover the full rawfile path from lzn but not vice versa :-)

    To make it easier we could accept oldname.crw as well - e.g. if files provided are not .jpg, we'll check whether oldname_lzn.jpg exists. Or we can even specify basename without extension, e.g.

    basename -> basename_lzn.jpg and from it we find raw file path

    > What would happen with the export directory. Would this remain the old
    > value or would you do some magic to handle it more like a relative path?
    > I guess the latter is quite tricky to do.
    > (E.g., lzrename xxx/yyy/zzz_lzn.jpg aaa/bbb/ccc_lzn.jpg
    > where zzz_lzn.jpg has an export path xxx/yyy/export/zzz_exported.jpg
    > this could be renamed to aaa/bbb/export/zzz_exported.jpg)

    I'll experiment with this. I don't see any difficulties with converting relatives paths to absolute and vice versa - Python Standard Library has powerful functions for path manipulation. So I'll try to make the tool as universal as possible. There will be probably several iterations.

    A question: when the tool is ready for beta-testing, where should I put it? We can try http://lightzone.wikidot.com/ if it supports attachments.

    Regards,
    Alex

  3. #13
    Join Date
    Aug 2007
    Posts
    737

    Default

    Hi Alex,

    Thinking about things ....

    In my problem case I had renamed both RAW and jpg(s) but thebooken internal links were the problem. Whoat probably makes most sense would be to assume the file renames were to be handled in the local folder/directory and then look from the jpg internally to find a linking file name in the same folder as the jpg. Keep it simple since to do anything more smart could be more dangerous - unless going through a batch with a pause for a list 'found' changes that could then be assessed ans accepted/rejected file by file. There could be times when you want to move a jpg off somewhere but leave the original file where it is. Plus names don't have to match ... so an entirely independent way of matching the files would be useful. Potentially a 'from > to' file list would allow that.


    Grant Perkins

  4. #14
    Join Date
    May 2008
    Location
    Montreal
    Posts
    33

    Default

    Hi all,

    the first version of the program is ready for your testing (no GUI yet), see
    http://lightzone.wikidot.com/renaming-files for details.

    Any feedback is welcome, you can use this forum or my email (as present in the program sources).

    Regards,
    Alex

  5. #15

    Default

    Great work!
    I'll certainly try it out over the weekend.

    Thanks

  6. #16

    Default

    Some first feedback.
    The script has just the level of control I need and it seems to works great!
    Provided I execute it on the same drive as where the program is located.

    Otherwise I get a error.
    Apparently this is since you make a local copy in the current directory and then try to do the move.

    /tmp$ lzntool.py --setrawpath=/media/external/PictureLibrary/Unsorted/2008/unsorted/20080523/IMG_3785.CR2 --setrawrelpath=./IMG_3785.CR2 /media/external/PictureLibrary/Unsorted/2008/unsorted/20080523/IMG_3785_lzn.jpg

    Traceback (most recent call last):
    File "/home/evdv/bin/lzntool.py", line 288, in <module>
    lzn.write()
    File "/home/evdv/bin/lzntool.py", line 203, in write
    os.rename(tpath, tname)
    OSError: [Errno 18] Invalid cross-device link

    For me it is not a major issue, I just first cd to the device where my library is being created.

  7. #17
    Join Date
    May 2008
    Location
    Montreal
    Posts
    33

    Default

    Hello,

    thank you for feedback. That was a bug indeed, I have fixed it and uploaded the new version as lnztool.py-0.11 (I don't have the needed privileges on http://lightzone.wikidot.com to rename/delete files).

    Cheers,
    Alex

  8. #18
    Join Date
    Aug 2007
    Posts
    737

    Default

    Hi Alex,

    Just to let you know I have not ignored your project!

    I went for the Python Windows download as suggested (to a Vista machine) but there seem to be a few problems I have not yet had a chance to grapple with. The MSI file download stops after about 430Kb and it all goes wrong from there. Cannot run it directly either it seems.

    More research required! I hope to get to that this evening but if you have any insight ionto the potential problem area (OS version compatibility?) your help would be gratefully accepted. I know if Python but know almost nothing about it.


    Grant Perkins

  9. #19
    Join Date
    May 2008
    Location
    Montreal
    Posts
    33

    Default

    Hi Grant,

    this is probably your browser or Internet-provider problem. I was able to download ActivePython-2.6.4.8-win64-x64-nopywin32.msi without any problems (it is about 21Mb).

    Some suggestions:

    - if you are using IE, try to install another browser. I would recommend either FireFox or Opera, both are very nice and reliable

    - try to download from "Other Systems and Versions" link on the ActiveState page, here is the direct link:
    https://www.activestate.com/activepython/downloads/

    (you need 2.6.X version)

    I doubt that your problem has anything to do with OS version compatibility, it is not installation but rather download that fails.

    Regards,
    Alex

  10. #20
    Join Date
    Aug 2007
    Posts
    737

    Default

    Hi Alex,

    Resolved. After I posted before I took a couple of minutes to go directly to the list of options and tried the download for 2.6. .... and that worked and has installed. So I'll hope to find some time this evening to experiment. Domestic management has me doing other things today ...

    Thanks for the further guidance though. I'm running IE 8 on this machine - it's not officially mine so I have not installed Firefox.


    Grant Perkins

Similar Threads

  1. Lightzone and Capture NX - RAW files
    By swf in forum Technical
    Replies: 10
    Last Post: March 3rd, 2008, 10:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts