arexx script for cropping multiple picures with showgirls.
  • Order of the Butterfly
    Order of the Butterfly
    amiga4001
    Posts: 445 from 2006/11/16
    From: The Netherlands
    I am duplicating a small brochure here on my peg2.
    I scan the pictures with my amax 2400 scsi scanner and then print them.
    I tried graphicspublisher at first to print but it is much smaller in format when printed with this program.
    So I use FXpaint to print keeps original format ..almost.
    ok for that part but I have to crop all pictures to remove the extra the scanner scanned.
    I do this with showgirls but I have to set the same amount each time again with a new picture..not nice.
    I did read about the arexx support and did see cropping commands so it may be possible?
    But I never used arexx so maybe someone could get me going?
    I need to crop 125 off the left and the height should be cropped to 3466.
    If I know the syntax I can experiment a bit with this.
    Powerbook 5,4 1.5GHz 1.5GB ram
  • »26.12.07 - 17:54
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    antibike
    Posts: 112 from 2003/3/5
    From: Germany / Sachsen
    hello,
    i think this will do the job.
    just open showgirls and load the first image in directory.
    edit the rexx file to your need.
    set how many images to convert.
    set destination directory.
    set the cropping values.
    and choice the saver just uncomment the right one.
    then open a shell and type "rx crop.rexx"

    --- start ---
    /* batch crop using showgirls */
    images=3 /* number of images in directory */
    target='ram:' /* destination dir */

    address 'SHOWGIRLS.1'
    do i=1 to images
    if i>1 then loadnext
    crop 125 0 100 100 /* corp left top width height */
    /* saveiff target||'image_'||i||'.iff' */
    /* savepng target||'image_'||i||'.png' */
    savejpg target||'image_'||i||'.jpg' 80
    end
    exit
    --- end ---

    [ Edited by antibike on 2007/12/27 18:08 ]

    [ Edited by antibike on 2007/12/27 18:09 ]
  • »27.12.07 - 16:06
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    amiga4001
    Posts: 445 from 2006/11/16
    From: The Netherlands
    Thanks! will look into it this weekend to see if it will work.
    Powerbook 5,4 1.5GHz 1.5GB ram
  • »27.12.07 - 17:58
    Profile