Image

  • 26 May

    Image and sidecar xml workflow question

    Q: We have a new process that backs up and then moves an image file and sidecar xml file into an input directory [folder A] for our automated photo toning software.
    The xml file contains instructions for cropping and has the same name as the image file with the exception of their file extensions, for example 230519_511627666.xml and 230519_511627666.jpg.
    The photo toning software ingests both the .xml and .jpg and attempts to tone the image, but if the .jpg fails it is output to an error folder [B] without being cropped and toned.
    We pick up the errored .jpg from folder B, resize it with other software and drop it to another folder [C].
    We need to then move the .jpg from folder C back to input folder A to try it again, but it requires its corresponding .xml file which can be found in the backup folder [D] be dropped alongside it again to process and tone.
    Is it possible with a Limagito rule to monitor source folder C and if an image file is found, grab the .xml file of the same name from folder D, then drop them both to folder A?
    Hope that makes sense! Thanks, David

    A: Yes, should be possible. We’ll prepare a script for this asap.

    • We created the following directory structure for the test of the script:

    Image and sidecar xml

    • Source is the C folder (resized files):

    Limagito file mover windows as source

    • Filename Include Filter, we only want to scan for jpg files:

    limagito file mover filename include filter

    • Enable and add ‘On Destination’ Pascal Script:

    limagito file mover pascal script

    • Don’t forget to adjust the Path const values:
    var
      tmpFilename: String;
    Const
      // Path must end with a \
      ctBackupPath = 'C:\Test\AJC\D\';
      ctDestinationPath = 'C:\Test\AJC\A\';
    Begin
      psExitCode:= 0;
      tmpFilename := ChangeFileExt(psFileName, '.xml');
      If FileExists(ctBackupPath + tmpFilename) Then
      Begin
        If psCopyFile(ctBackupPath + tmpFilename, ctDestinationPath + tmpFilename, False) Then
        Begin
           psExitCode:= 1;
           psLogWrite(1, '', 'Copy file success of ' + ctBackupPath + tmpFilename + ' to ' + ctDestinationPath + tmpFilename);
        End
        Else
        Begin
          psLogWrite(1, '', 'Copy file error of ' + ctBackupPath + tmpFilename + ' to ' + ctDestinationPath + tmpFilename);
        End;
      End
      Else
        psLogWrite(1, '', 'Error, xml file does not exist: ' + ctBackupPath + tmpFilename);
    End.

    limagito file mover pascal script as destination

    Feedback user:

    • Thank you, I’ll try this out and let you know if I have any issues with it. Appreciate the quick response!
    • Just wanted to update, this rule and script appears to work great and I have it in place in our production workflow now, thanks again!

    #filetransfer #mft #filemanagement

    If you need any info  about this ‘Image and sidecar xml workflow question’, please let us know.

    Best regards,

    Limagito Team

     

    By Limagito-Team Image Pascal Script , ,
  • 20 Nov

    Limagito File Mover as image converter to many different formats

    Image converter to many different formats using Limagito File Mover Version v2023.0.11.20.

    Do you know that our File Mover tool is able to convert a loaded image file to another format. The setup of such an automated task is really easy.

    1. Search for an image file using one of our Source options
    2. Add IMG (Image) as Destination
    3. Add Output Action within this IMG Destination
    4. Enable ‘Change File Extension’ and add the format file extension you need. For example: .png
    5. Done

    Some file types we currently support as export: Jpeg, Jpeg2000, PNG, TIFF, BMP, WBMP, PS, PDF, PCX, DCX, TGA, PXM, ICO, HDP, GIF, DICOM, …

    Regarding IMG (Image) as destination, we are always open to new ideas so please let us know.

    On our roadmap currently we have:

    • Parameters (Compression, Quality, ..)
    • EXIF Metadata

    Some screenshots to get you started:

    • Please add WIN as source to scan a Windows folder for images (can be any other Source too):

    Limagito File Mover source setup

    • In this example we only want to convert .jpg files, so add a File Name Include filter:

    Limagito File Mover Filename Filter

    • Add ‘IMG’ (Image) as Destination:

    Limagito File Mover Image as destination

    • In this destination:
      • Select ‘Output to File’ as new Action and click the <Add> button
      • In the Image Actions listbox (on the left) select the newly added ‘Output to File’ action
      • An extra tab ‘Output’ will appear in the top menu, select this tab

    Image converter setup

    • Enable ‘Change File Extension’ and add the format extension you want to convert to ( .png, .bmp, .tiff, …):

    Image conversion setup

    • Enable the Rule and wait on the scan event or trigger manually:

    Limagito File Mover manual trigger

    • RunTime Log Result:

    Limagito File Mover RunTime Log

    • Image properties of the converted image:

    Image properties

    #FileTransfer #image #imageconverter

    If you need any info about this new ‘image converter’ option, please let us know.

    Best regards,

    Limagito Team

    By Limagito-Team Image ,
  • 01 May

    Image Automation with Limagito File Mover

    On request we are adding an Image Automation option as Destination. At this moment the base code is ready so now we can start adding options to this ‘IMG’ as Destination option.

    Some screenshots to give you an idea:

    • IMG as Destination option was Added

    Limagito File Mover Image Automation as Destination

    • At this moment you can select ‘Output to File’ and ‘Rotate Image’.

    Limagito File Mover Image Automation Setup

    • Rotate options Setup

    Limagito File Mover Image Automation Setup

    • Output to File Setup

    Limagito File Mover Image Automation Setup

    • RunTime Log Result

    Limagito File Mover RunTime Log result

    Limagito File Mover Image Automation

    #Filetransfer #IMAGE

    If you need any info about this ‘Image Automation’ option, please let us know.

    Best regards,

    Limagito Team

    By Limagito-Team Image ,
SEARCH