English > Development

Picture export

(1/2) > >>

Nautilus2067:
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

svenne:
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: ---<!-- commented out -->
--- End code ---

You can also export the posters without any links to them:
If you reference a poster subtemplate in your .nfo export template...

--- Code: ---{%value=poster params="full" template="poster.ptm" maxvalues="1" width="150" height="150"}
--- End code ---
...your poster subtemplate (poster.ptm) could be like this:

--- Code: ---{#StringReplace '{%param=imgdata}' '{%param=imgdata}' ''}
--- End code ---
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.

Nautilus2067:

--- Quote from: svenne on May 29, 2013, 11:55:58 am ---
--- Code: ---{#StringReplace '{%param=imgdata}' '{%param=imgdata}' ''}
--- End code ---
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.

--- End quote ---

I like that idea and will try it. Thanks for the hint.

Nautilus2067:
Thanks svenne, it works perfectly.

Next questions:

I am saving posters and screenshots with the option
 

--- Code: ---imagenameformat="%fs%%in%%ext%"
--- End code ---

That leads to images like:

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

Pretty good for the beginning. But:


* is it possible to replace screenshot with backdrop?
* is it possible to save 1 poster as folder.jpg?

supreme:
how to export posters for the  highlighted movies only ?
It seems like the export button, exports all movies in the database ;/

Navigation

[0] Message Index

[#] Next page

Go to full version