Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

Copying non-resized images

Last post 24 Aug 2006, 6:19 PM by adb64. 0 replies.
Sort Posts: Previous Next
  •  24 Aug 2006, 6:19 PM 10717

    Copying non-resized images

    I am resizing images to a max width of 512 and a max height of 384 pixels and then save the result to another directory.

    But there are also images that already comply to these sizes, so no resize needed, but they need to be copied to the other directory.

    So I now have the following script:

    Atalasoft EyeBatch Script File (modifying this file might cause unexpected results)
    v2.0.12

    Begin IF Block
    Expression1 &[Width(Source)]
    Operator 4
    Expression2 512
    ExpressionAdvanced 

    Resize
    Width 512
    Height 384
    Stretch False
    Proportions True
    Dimension 0
    Method 13
    Resize Minimum False
    Best Fit False

    End IF Block

    Begin IF Block
    Expression1 &[Height(Source)]
    Operator 4
    Expression2 384
    ExpressionAdvanced 

    Resize
    Width 512
    Height 384
    Stretch False
    Proportions True
    Dimension 0
    Method 13
    Resize Minimum False
    Best Fit False

    End IF Block

    _________________________________________________________

    Save to File
    ImageType 1
    Quality 50
    Progressive? True
    Placeable? True
    BitDepth 0
    BMP RLE Compression? False
    PNG Gamma 0
    Resolution 0
    Keep Text Blocks? False
    Keep EXIF? False
    TIFF Compression 0
    TIFF G3/G4 Compression 1
    Interlace? 0
    PNG Background Color -1
    Output Options 0
    JPEG Smoothing 0
    PNG Grayscale? True
    WMF Default Width 640
    WMF Default Height 480
    Split Multiframe False
    Suffix 
    Prefix 
    New Filename 
    Leading Characters 0
    File Index 0
    Start Number 0
    Change Case 1
    File Numbering? False
    Output Folder C:\Data\html\Edit\reizen\
    Root Folder 
    Overwrite? False
    Keep Filename? False
    Prompt Output True
    GIF Trans Color -1
    Change Case Extension False
    Multipage Suffix _frame

     

    In case of JPG files used as input, will they just be copied as-is when resize is not needed or are they first decoded and at the save operation encoded again?

    Thanks,

    Arjan

     


View as RSS news feed in XML