Announcement

Collapse
No announcement yet.

Can I crop from the command line without display?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can I crop from the command line without display?

    Hi All,


    Is there a way to do cropping of a file from the command line? It appears that the /crop(startx,starty,width,height) only displays the image in the viewer. I've tried adding /convert=filename and the /crop is just ignored in that case. So is there any way to do file cropping from a batch file without using the GUI? (Since, of course, bringing up the GUI negates the whole purpose of a batch file )

    I'm stuck at 3.99 because of the crop selection on large images bug introduced in 4.00 but I have tried this with 4.10 also and I can't find a way to save files with /crop in 4.10 either.

    Thanks!

    #2
    Hi semigeezer,

    This worked fine:
    i_view32 c:\temp\image.jpg /crop=(10,10,300,300) /convert=c:\temp\test.jpg

    Laurent
    Before you post ... fill in your OS and IV version in your profile.

    Comment


      #3
      Aha!

      It is the order of the parameters that makes the difference. You had

      i_view32 c:\temp\image.jpg /crop=(10,10,300,300) /convert=c:\temp\test.jpg

      and I had

      i_view32 c:\temp\image.jpg /convert=c:\temp\test.jpg /crop=(10,10,300,300)

      and only the former works.

      Thanks Laurent!
      Last edited by semigeezer; 01.06.2008, 09:17 PM.

      Comment

      Working...
      X