Personal Video Database

English => Development => Topic started by: Nautilus2067 on May 27, 2013, 08:17:46 am

Title: Picture export
Post by: Nautilus2067 on May 27, 2013, 08:17:46 am
Is it possible to save posters, screenshots etc with out creating any export text file? First I have tried to export the pictures with my MovingPictures .nfo file, but I do not want to have any XML entries for the pictures in the created .nfo file. I just want the pictures to be saved in the Folder with the movie file. This I could not get done. So as a workaround I wrote another export template to export the pictures which creates a separate file called images.nfo that can be deleted afterwards. Not beautiful, but working. Is there any other way?

Thanks,
Oliver
Title: Re: Picture export
Post by: svenne on May 29, 2013, 11:55:58 am
Hi Oliver,
I would export the posters with your .nfo file, just as you tried first.
As a workaround you could put the image references into XML-Comments:
Code: [Select]
<!-- commented out -->
You can also export the posters without any links to them:
If you reference a poster subtemplate in your .nfo export template...
Code: [Select]
{%value=poster params="full" template="poster.ptm" maxvalues="1" width="150" height="150"}...your poster subtemplate (poster.ptm) could be like this:
Code: [Select]
{#StringReplace '{%param=imgdata}' '{%param=imgdata}' ''}The trick is, PVD still exports the posters but at the same time this StringReplace statement replaces all references to the images with literally nothing.
Title: Re: Picture export
Post by: Nautilus2067 on May 29, 2013, 12:07:48 pm
Code: [Select]
{#StringReplace '{%param=imgdata}' '{%param=imgdata}' ''}The trick is, PVD still exports the posters but at the same time this StringReplace statement replaces all references to the images with literally nothing.

I like that idea and will try it. Thanks for the hint.
Title: Re: Picture export
Post by: Nautilus2067 on May 29, 2013, 05:14:25 pm
Thanks svenne, it works perfectly.

Next questions:

I am saving posters and screenshots with the option
 
Code: [Select]
imagenameformat="%fs%%in%%ext%"
That leads to images like:

poster1.jpg
poster2.jpg
screenshot1.jpg
screenshot2.jpg
screenshot3.jpg

Pretty good for the beginning. But:

Title: Re: Picture export
Post by: supreme on March 06, 2016, 09:49:18 pm
how to export posters for the  highlighted movies only ?
It seems like the export button, exports all movies in the database ;/
Title: Re: Picture export
Post by: Nautilus2067 on March 24, 2016, 10:09:24 am
Time has passed since I used PVD the last time... But I think you have to restrict the entries via search function. All entries visible will be exported wether marked or not.
Title: Re: Picture export
Post by: supreme on March 29, 2016, 12:34:05 am
Time has passed since I used PVD the last time... But I think you have to restrict the entries via search function. All entries visible will be exported wether marked or not.

yep, thanks m8