XML export: renaming images

You found an error in the program ? Report it here
Post Reply
fbig
Posts: 4
Joined: 2009-08-04 11:37:13

XML export: renaming images

Post by fbig »

When I export in xml format all images are created again with a name like this:

movies_1_3249890.jpg
movies_2_3249906.jpg

while I have on the taget direcory old images:

movies_1.jpg
movies_2.jpg

So, if I dont clear the directory before export, I have a lot of copies of the same image.

I aplogize if the question has already been posted.

Thanks
Wotan
Posts: 68
Joined: 2007-12-26 23:09:41

Post by Wotan »

Have you unchecked the "Copy with exported file" option (or choose the "Only if it does not exist yet")? It's under File -> Export -> XML
antp
Site Admin
Posts: 9636
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

From what do you export to XML? A .amc file containing the images? If so, it is normal that it does not overwrite files which already exist.
fbig
Posts: 4
Joined: 2009-08-04 11:37:13

Post by fbig »

Wotan wrote:Have you unchecked the "Copy with exported file" option (or choose the "Only if it does not exist yet")? It's under File -> Export -> XML
If I uncheck "Copy with exported file" no image is copied.
The "Only if it does not exist yet" cannot be set anyway in XML export (it's gray), while in html export it is.
fbig
Posts: 4
Joined: 2009-08-04 11:37:13

Post by fbig »

antp wrote:From what do you export to XML? A .amc file containing the images? If so, it is normal that it does not overwrite files which already exist.
Yes: it is an amc with images inside. But I was expecting the same as the html export, where only new images are exported.
antp
Site Admin
Posts: 9636
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

You'll have the same behaviour with HTML export in some cases I think (if there are multiple movies with same number - I should check)
And the behaviour of XML export changed few times in the latest versions, in addition of that...
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

I think the reason for that was that XML export is not a "real" export procedure, but just calls the "save to" XML procedure.

I fixed that on SGC when I added some extended export routines for XML and SGC format some time ago. It was because I wanted to have partial export of catalogs. If I remember correct I offered to send the procedures and you agreed, but then I forgot about it :/

If you still want them, I will have a closer look on it that weekend and see what I've done, adapt all variables for AMC and send you the files.
fbig
Posts: 4
Joined: 2009-08-04 11:37:13

Post by fbig »

antp wrote:You'll have the same behaviour with HTML export in some cases I think (if there are multiple movies with same number - I should check)
And the behaviour of XML export changed few times in the latest versions, in addition of that...

In HTML export you can set the option "copy only if file does not exist", in XML no. With this option only new images are copied, otherwise are all overwritten and not renamed. About the number I think that this number is unique in db, how could I have multiple movie-id?
antp
Site Admin
Posts: 9636
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

When adding a movie or changing its number there is an option to accept the duplicate number.
bad4u wrote: If you still want them, I will have a closer look on it that weekend and see what I've done, adapt all variables for AMC and send you the files.
I think you sent it, I just haven't included it yet
Post Reply