Page 1 of 1

XML export: renaming images

Posted: 2009-08-04 11:45:53
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

Posted: 2009-08-04 13:52:16
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

Posted: 2009-08-04 13:57:38
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.

Posted: 2009-08-05 09:42:30
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.

Posted: 2009-08-05 09:46:25
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.

Posted: 2009-08-05 13:39:02
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...

Posted: 2009-08-05 17:20:59
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.

Posted: 2009-08-05 21:28:56
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?

Posted: 2009-08-06 18:17:08
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