Results 1 to 4 of 4

Thread: cmd /jpg_rotate does not work correct

  1. #1

    Default cmd /jpg_rotate does not work correct

    Hi,

    I am trying set the correct orientation of all my images.
    So I found the cmdline option "/jpg_rotate", which works fine.

    The cmdline "i_view64.exe %%i /jpg_rotate=(6,0,1,0,0,0,0,0)" opens irfanview and the image and rotates the image correctly.
    But irfanview stays open, till I close it manually (btw: my msdos batch files also stops till I close the windows).

    When I use the cmdline "i_view64.exe /cmdexit %%i /jpg_rotate=(6,0,1,0,0,0,0,0)" the windows closes automatically and the batch job continues.
    But the file is not changed!

    What I am doing wrong?
    How to do it correct?

    Thanks for any help
    Best regards
    Gerhard

  2. #2
    Moderator Enterprise User Bhikkhu Pesala's Avatar
    Join Date
    May 2007
    Location
    East London
    Posts
    6,113
    OS
    64-bit Win 10
    CPU Cores
    1

    Default

    I have very little experience of using command line scripts, but it seems to me that you should be putting /cmdexit last

    "i_view64.exe %%i /jpg_rotate=(6,0,1,0,0,0,0,0) /cmdexit "

    Have you tried it that way around?

  3. #3

    Default

    This gives me an error message.

    But following your advice, I put the "/cmdexit" to another position and now it works fine.
    "i_view64.exe %%i /cmdexit /jpg_rotate=(6,0,1,0,0,0,0,0)"

    Very strange.
    But thanks for helping me out of this!

    Gerhard

  4. #4
    Professional User Mij's Avatar
    Join Date
    Mar 2007
    Location
    Camberley, Surrey, UK
    Posts
    2,763
    Version
    IrfanView 4.51
    OS
    32-bit Win 10
    CPU Cores
    3

    Default

    Nothing strange about it. Presumably %%i is your placeholder for the name of the image you want to process. That always has to come immediately after i_view64.exe and before the options. Applies to all the commands.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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