PMView.com

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Scripting Against A Tree Of Images
aaronlawrence
post Aug 26 2008, 11:47 PM
Post #1


Forum Member


Group: Members
Posts: 1
Joined: 26-August 08
Member No.: 2,498



(longtime user, first time poster...)

Hello, I have a large folder tree of JPG photos I would like to simply resave into a lower quality, while retaining the tree structure.

I made a script to do the resave part. But I can't figure out any way to keep the tree structure. PMView internally can only work on files within one folder (right?).

I tried to run the script externally file by file, but there I run into two problems:
- if not told otherwise by a "set output directory" step, pmview seems to be trying to save the photos to ? the current directory?
- if I tell it to use the "same directory as original" I get the replace confirmation dialog every time. I tried turning setting preferences/confirmations to "Replace file if it exists", but it doesn't help.
Go to the top of the page
 
+Quote Post
Peter
post Dec 9 2008, 08:44 PM
Post #2


Forum Member


Group: Admin
Posts: 660
Joined: 14-March 00
From: Wilmington, North Carolina
Member No.: 3



QUOTE (aaronlawrence @ Aug 26 2008, 11:47 PM) *
(longtime user, first time poster...)

Hello, I have a large folder tree of JPG photos I would like to simply resave into a lower quality, while retaining the tree structure.

I made a script to do the resave part. But I can't figure out any way to keep the tree structure. PMView internally can only work on files within one folder (right?).

I tried to run the script externally file by file, but there I run into two problems:
- if not told otherwise by a "set output directory" step, pmview seems to be trying to save the photos to ? the current directory?
- if I tell it to use the "same directory as original" I get the replace confirmation dialog every time. I tried turning setting preferences/confirmations to "Replace file if it exists", but it doesn't help.


Hi Aaron,

With a REXX script you could easily recurse folders and put the file in the same directory (or with the help of REXX, in a different folder).

As for the confirmation dialog, make sure you use the same INI file, by using the /INI command line flag. The settings will work, but only if the correct INI file is used.

These answers are for OS/2. Some things differ on Windows.

Thanks,
Peter


--------------------
Peter Nielsen (peter@pmview.com) "If you can dream it, you can do it" JFK.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 18th February 2018 - 05:35 AM