Announcement

Collapse
No announcement yet.

batch scaling problem -- is this possible?

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

    batch scaling problem -- is this possible?

    I have a lot of images, in a rather complicated directory structure. I want to scale these for display, with the following rule:

    All file which have a larger dimension grater than a given value (e.g. 1024, 800, etc.) are to be scaled to reduce that dimension to the given value. All other files are to be left as-is.

    1) is it possible to run a batch over all files in a directory and it's sub-directories, recursively?

    2) is it possible to specify the scaling values as stated above?

    Thanks for any help.

    PS, if either (or both) answers are "no", do post, don't just ignore.

    #2
    Hi,

    it is possible with a command line script. Maybe it does not exactly what you like to have but it should be possible to modify it.
    If you need help feel free to ask.

    Regards
    Nils

    Comment


      #3
      1) If you are using the Batch conversion feature from the Irfanview GUI then you can set the option to list all the files in the subfolders, as well as those in the main selected folder. Then they will all be converted when you run the batch. You can also set up for the input subdirectory structure to be reproduced for the output files too.
      2) What you describe is the normal behaviour if you set the options to "Set one or both sides to .." and "Don't enlarge smaller images" in the Resize/resample section of advanced batch.

      Comment


        #4
        Ah-ha! I hadn't noticed the "one or both sides" and will investigate that.

        I was thinking about a riff on command-line scripts. A LISP program which would check the dimensions of each image and sort them into seperate directories, one of "don't bother", one for "shrink horizontally" and one for "Shrink vertically". Or, as a variation, invoke irfanview as a command on each file as needed.

        However, look as if I can skip the programming for now.

        Thanks, guys!

        Comment

        Working...
        X