multiple convert

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

Tekila
Posts: 4
Joined: Sat Jul 16, 2011 9:02 am

multiple convert

Post by Tekila »

Hello,

I would like to make a script that convert a folder with many photos and copy them to an FTP with the same folder structure.
Example :
I have the directory "c:\photos\"
In this directory, I have many directories like "2014-01-01", "2014-01-15", "2014-02-08", ...
I want to take all these directories and the photos and :
- resize them in 1024x768
- copy the resized photos to ftp://.../2014/
- In this directory, I would like to have the same structure : ".../2014/2014-01-01", ".../2014/2014-01-15", ...

I use the "convert" option from XnView MP and I am actually able to resize the photos and copy them to the FTP, but I am not able to recreate the same folder structure as the original photos.
Can anyone help me ?

Sorry for my English (I am French ;-) ),
Sebastien
cday
XnThusiast
Posts: 4187
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: multiple convert

Post by cday »

Tekila wrote:I use the "convert" option from XnView MP and I am actually able to resize the photos and copy them to the FTP, but I am not able to recreate the same folder structure as the original photos.
Hello, are you selecting 'Keep folder structure' ?
Batch_Convert.png
That's 'Conserver la structure des dossiers' in the French version, as I'm sure you know. :wink:
You do not have the required permissions to view the files attached to this post.
Tekila
Posts: 4
Joined: Sat Jul 16, 2011 9:02 am

Re: multiple convert

Post by Tekila »

Hello,

Thank you for your answer.
I tried your solution but it does not work.
In the result folder, the photos aren't stored in subfolders : they are all in the main directory.

In my example, I take all the photos from the directory "h:\photos\" : in this directory, I have different directories : "2014-01-01" ...
The result is that after the "convert script", all the photos are in the directory "h:\bureau\test" but there are no subfolder.
Capture.JPG
You do not have the required permissions to view the files attached to this post.
cday
XnThusiast
Posts: 4187
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: multiple convert

Post by cday »

Tekila wrote: ... I take all the photos from the directory "h:\photos\" : in this directory, I have different directories : "2014-01-01" ...
The result is that after the "convert script", all the photos are in the directory "h:\bureau\test" but there are no subfolder...

In the result folder, the photos aren't stored in subfolders : they are all in the main directory.
Batch_Convert_2.png
A bug, I think:

On the Input tab, 'Add folder...' adds the images in the selected folder and any sub-folders, but not the folder structure...
You do not have the required permissions to view the files attached to this post.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: multiple convert

Post by oops66 »

Hello ...And if into "nom de fichier" you put: "/{Folder name}/resultat_{Filename}" (for linux) ?
... or maybe in windows: \{Folder name}\resultat_{Filename} ?

Or for full directory (linux): "{Directory}/{Filename}" or wondows ? "{Directory}\{Filename}" ?
Last edited by oops66 on Mon Mar 10, 2014 11:26 pm, edited 1 time in total.
XnViewMP Linux X64 - Debian - X64
cday
XnThusiast
Posts: 4187
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: multiple convert

Post by cday »

oops66 wrote:Hello ...And if into "nom de fichier" you put: "/{Folder name}/resultat_{Filename}" (for linux) ?
... or maybe in windows: \{Folder name}\resultat_{Filename} ?
In comparison with XnView Classic, the problem seems to be at the input rather than the output tab: images within the selected folder structure are loaded to the Input tab without their associated paths...
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: multiple convert

Post by oops66 »

Here under linux that works, so far ... ;-) ... but I don't know with the windows version ...
for full directory in name file (linux): "{Directory}{Filename}"
for full directory structure (linux): "{Directory}/{Filename}"
or with the the last dir (linux): "/4-emails_{Folder name}/{Filename}" ... I use this one (for "filename") with no path in "folder" (= current dir.). ;-)
XnViewMP Linux X64 - Debian - X64
User avatar
XnTriq
Moderator & Librarian
Posts: 6388
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: multiple convert

Post by XnTriq »

xnview ([url=http://newsgroup.xnview.com/viewtopic.php?p=117407#p117407]0.51 Win7 x64: keep folder structure doesn't work[/url]) wrote:
GeorgD wrote: XnViewMP v0.64: Tools > Batch convert > Add Folder > C:\tmp\sourceParent, Output Folder C:\tmp\target, "keep folder structure" activated (everything else disabled). Result:

Code: Select all

C:\tmp\target
C:\tmp\target\Aus dem letzten Jahrhundert.jpg
C:\tmp\target\Funkenschlag Erweiterung Brasilien und Spanien+Portugal.JPG
C:\tmp\target\ruthe Geburtstag von Charles Darwin.jpg
=> the subfolders have NOT been created in the target
right, i've changed that, you can try last version of XnConvert...
cday
XnThusiast
Posts: 4187
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: multiple convert

Post by cday »

XnTriq wrote:
xnview ([url=http://newsgroup.xnview.com/viewtopic.php?p=117407#p117407]0.51 Win7 x64: keep folder structure doesn't work[/url]) wrote:
GeorgD wrote: XnViewMP v0.64 ... => the subfolders have NOT been created in the target
right, i've changed that, you can try last version of XnConvert...
Seems to be fixed in XnConvert 1.63, and hopefully will be in next XnViewMP release... :)
Tekila
Posts: 4
Joined: Sat Jul 16, 2011 9:02 am

Re: multiple convert

Post by Tekila »

Hello,

I tried the last version of Nconvert and it works fine when the output is a folder/directory. Thank you.
Nevertheless, it doesn't work when the output is FTP : in this case, the photos are transfered but the folder structure isn't conserved.
Is it possible to have the same correction for the ftp output ?

Thank you
Sebastien