Zum Hauptinhalt gehen

⚠️ Please note that this topic or post has been archived. The information contained here may no longer be accurate or up-to-date. ⚠️

Extract JPGs from EIPs programmatically?

Kommentare

3 Kommentare

  • Eric Valk
    Hi Sean

    If the file is "GM5-17_0027.eip" in the Unix shell's current folder, then the following Unix command will create the subbolder "GM5-17_0027" and extract the contents to the folder:
    ditto -x -k GM5-17_0027.eip ./GM5-17_0027
    The image file inside the folder is "0.RW2" in the case that the original was "GM5-17_0027.RW2"


    Also useful are:



    "ditto" is a standard part of OSX's Unix:man ditto
    0
  • Sean Murphy
    Thanks Eric. This definitely works but we won't be able to process out for each file. We shoot thousands of images per day so the additional processing time is likely too much (as is actually processing out each image via CapOne). I was just hoping there was a way to sneakily pull out a preview file that was already present. If only we didn't have to use the EIP format. This additional preview extraction would be easy with just the raw files. 😄
    0
  • Eric Valk
    So in that case, run this as a background task while the operator and the AppleScript are doing something about the next shot.

    By the time the next shot is finished, the preview jpg from the previous shot has been dumped in some collection folder.

    You can either write a Unix script to run in background mode, and you can even use OSX’s Archive.app as part of it.
    tell system events to tell application “Archive†to open [i]some_file.eip[/i]
    Archive will execute this and not send a response, if you tell AppleScript to use a 0 wait time, then Archive will effectively run in the background while the AppleScript moves on.

    Archive and ditto are pretty fast, it is exiftool which is slow - unless you as exiftool to process every raw file in a folder in one command. “Do shell script†is also slow. So minimize your use of these commands.
    0

Post ist für Kommentare geschlossen.