1.4.x Themes: BasicHome, Clear Art's support for Titan, Weather icon on screen, bugfixes and more. (3 Viewers)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    How exactly does your tool? How it started, what are the requirements, where to be pictures, etc. and so on? So I know what changes I should make.
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    Here is everything you need to auto create missing disc images, I went with 1000x1000 format because that is what fanart.tv has been using.

    The command for using movie poster is
    Code:
    convert poster.jpg -resize 1500x1500 ^ -gravity center -crop 1000x1000+0+0 +repage ^ transparency_mask.png -alpha off -compose copy_opacity -composite dvdoverlay.png -compose over -composite ^ result.png

    The command for movie fanart is
    Code:
    convert fanart.jpg -resize 1778x1778 ^ -gravity center -crop 1000x1000+0+0 +repage ^ transparency_mask.png -alpha off -compose copy_opacity -composite dvdoverlay.png -compose over -composite ^ result.png

    The commands above are for fanart.jpg and poster.jpg but you can subsitute fanart.png and poster.png if they the source material is in png format.

    can create a .bat file so you just use "makedisc.cmd %input% %type% %output%" so you just type
    makedisc "c:\programdata\..\fanart\344543.jpg" fanart "c:\programdata\thumbs\discimage\349845.jpg"

    The example is for making a 1000 x 1000 disc image using fanart or poster, but I can adjust to other situations eg. making a transparent disc image from a non transparent jpg image.

    I can actually make a much nicer looking disc by making the middle part of the disc 50% transparent and the outer edge partially opaque etc, but this was just a quick sample. If you to decide to use this I can create nicer overlay and conversion mask etc...

    We can even do fancy stuff like add text with the resolution or title of the movie etc to the disc.

    You would auto create these discs for all media that was missing an online disc image, however the plugin will still retry to get a disc image in the future by remember which ones it created a "pretend" disc image.
     

    Attachments

    • makedvd.zip
      4.2 MB
    Last edited:

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    Where to get a poster or fanart? I can add a setting that will trigger an external file when there is no сdart and send it to the desired settings. It remains to clarify what parameters are needed?
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    Hi ajs,found a small bug,when you select a tile left or right at the bottom,the middle tile disappears and reappears
    I tried to replicate this behavior, but I do not work :(
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    Hopefully this is more simple for you

    Useage:

    fanart2dvd.cmd "%input%" "%output%"
    poster2dvd.cmd "%input%" "%output%"

    eg.
    Code:
    fanart2dvd.cmd "C:\ProgramData\Team MediaPortal\MediaPortal\thumbs\MovingPictures\Backdrops\FullSize\{(500).Days.of.Summer} [375929937].jpg" "C:\ProgramData\Team MediaPortal\MediaPortal\thumbs\CD Art\tt4874578.png"

    ...



    or you can call convert.exe (imagemagik) directly eg. this would be the code if your installer copied transparency_mask.png and dvdoverlay.png and convert.exe to the program files folder

    Code:
    C:\Program Files (x86)\MePo Tools\convert.exe "C:\ProgramData\Team MediaPortal\MediaPortal\thumbs\MovingPictures\Backdrops\FullSize\{(500).Days.of.Summer} [375929937].jpg" -resize 1778x1778 ^ -gravity center -crop 1000x1000+0+0 +repage ^ "C:\Program Files (x86)\MePo Tools\transparency_mask.png" -alpha off -compose copy_opacity -composite "C:\Program Files (x86)\MePo Tools\dvdoverlay.png" -compose over -composite ^ "C:\ProgramData\Team MediaPortal\MediaPortal\thumbs\CD Art\tt4874578.png"
     

    Attachments

    • makedvd (v2.0).rar
      3.7 MB
    Last edited:

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    At the time of downloading pictures I only know the ID and name (Take my work to a minimum with the database). I would not want to break the system. That's not enough?
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    3 ways
    1. read local fanart file location from database
    2. use ID & name to do a try and find the fanart from the appropriate local folder
    eg. for tvseries it is \thumbs\fan art\fanart\original\%tvseries_id%-*.jpg
    eg. moving pictures it is \thumbs\moving pictures\backdrops\fullsize\{%name%}*.jpg
    eg. music it is \thumbs\skin fanart\scraper\music\%name%*.jpg
    and \thumbs\skin fanart\userdef\music\*%name%*.jpg
    or \thumbs\music\artists\%name%L.jpg
    3. use whatever scraper you are using to download an image to manipulate

    #1 is by far the best.

    Can you just create the fake fanart when you are not in monitoring mode?
     
    Last edited:

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    What is a fake fanart? Create'm not sure I can download and use, but for example at the time of adding the new movie fanart is not always (plug-in can not be installed or is not loaded).

    I can wait when earns http://www.freecovers.net/, and then run your program for the downloaded files. Or make a macro substitution and give the necessary data. Id, Id in the database (imdb, tmdb), name, and what do you need?
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    Sorry I meant fake discart.

    There are a lot of ways you could do it, you could just periodically go through the titles you don't have disc art for and add disc art rather than doing it on the fly, this would solve your sometimes intially fanart is not available problem. Alternatively you could download the fanart to use yourself.

    Otherwise you can just add a button called create fake discart that would create fake discart for all titles that don't have disc art, leave your internal database marking the item as not having discart and subsequently overwrite the fake discart if real discart is found.
     

    Users who are viewing this thread

    Top Bottom