Is embedded coverart compressed or restricted to max resolution?

Discussion in 'MPTagThat' started by HomeY, December 30, 2014.

  1. HomeY
    • Team MediaPortal

    HomeY Test Group

    Joined:
    February 23, 2008
    Messages:
    6,451
    Likes Received:
    2,613
    Gender:
    Male
    Occupation:
    Network Engineer
    Location:
    ::1
    Ratings:
    +4,712 / 16
    Home Country:
    Netherlands Netherlands
    Show System Specs
    hi @hwahrmann i am wondering if there is any sort of compression going on when i embed an artist thumb in the tags. Or are embedded thumbs restricted to a maximum resolution? I do notice that hovering over the thumb in MPTagThat, shows the full size (1000*1000) embedded thumb.



    The reason why i ask is because i just ran the same database scan twice. The first time using embedded coverart (which is the folder.jpg) and the 2nd run with folder.jpg as source.
    1st scan: thumbs folder is 102 MB in size
    2nd scan: thumbs folder is 192 MB in size :eek:

    And i see noticable better thumbnails created from the folder.jpg
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. hwahrmann
    • Team MediaPortal

    hwahrmann Development Group

    Joined:
    September 15, 2004
    Messages:
    4,491
    Likes Received:
    1,623
    Gender:
    Male
    Location:
    Vienna, Austria
    Ratings:
    +2,248 / 1
    Home Country:
    Austria Austria
    Yes we are doing some sort of compression when creating the thumbs.
    Need to look it up in the code tough, as it was not written by me.

    Edit: Just saw that i was replying to a thread in MPTagThat forum.
    This has been written by me ofc.

    There is a Settings, shich when set will reduce the resolution of the saved thumb.

    Or are those figures from a MP Scan
     
    • Like Like x 2
  4. HomeY
    • Team MediaPortal

    HomeY Test Group

    Joined:
    February 23, 2008
    Messages:
    6,451
    Likes Received:
    2,613
    Gender:
    Male
    Occupation:
    Network Engineer
    Location:
    ::1
    Ratings:
    +4,712 / 16
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Correct, that's handled by the GUI > Thumbnails section. I did some work on that part last week, internal forum link ;)

    So i was testing my branch with 200+1000 thumbs setting, folder.jpg are all 1000*1000, and exactly that same file was embedded as covertart.
    When i run MP Music database import and check 'embedded coverart', the thumbs are smaller then when i don't check 'embedded covertart' and check to use folder.jpg as thumbnail source for a music dB scan.

    In both situations, the MP Thumbnail settings were the same, that's why i assumed that MPTagThat was also applying some sort of compression.
     
    • Like Like x 1
  5. hwahrmann
    • Team MediaPortal

    hwahrmann Development Group

    Joined:
    September 15, 2004
    Messages:
    4,491
    Likes Received:
    1,623
    Gender:
    Male
    Location:
    Vienna, Austria
    Ratings:
    +2,248 / 1
    Home Country:
    Austria Austria
    Could be. I am using FreeImage for handling pictures.
    Maybe there's some default compression within FreeImage. will check
     
    • Thank You! Thank You! x 1
  6. hwahrmann
    • Team MediaPortal

    hwahrmann Development Group

    Joined:
    September 15, 2004
    Messages:
    4,491
    Likes Received:
    1,623
    Gender:
    Male
    Location:
    Vienna, Austria
    Ratings:
    +2,248 / 1
    Home Country:
    Austria Austria
    Just had a look at the code.
    I am saving the JPEG with default settings, but could specify following flags:

    JPEG_QUALITYSUPERB
    Save with superb quality (100:1).
    JPEG_QUALITYGOOD
    Save with good quality (75:1).
    JPEG_QUALITYNORMAL
    Save with normal quality (50:1).
    JPEG_QUALITYAVERAGE
    Save with average quality (25:1).
    JPEG_QUALITYBAD
    Save with bad quality (10:1).
    JPEG_PROGRESSIVE
    Save as a progressive-JPEG (use | to combine with other save flags).
    JPEG_SUBSAMPLING_411
    Save with high 4x1 chroma subsampling (4:1:1).
    JPEG_SUBSAMPLING_420
    Save with medium 2x2 medium chroma (4:2:0).
    JPEG_SUBSAMPLING_422
    Save with low 2x1 chroma subsampling (4:2:2).
    JPEG_SUBSAMPLING_444
    Save with no chroma subsampling (4:4:4).

    i guess using JPEG_QUALITYSUPERB will help.
    I'm creating a test build for you with this setting and drop you a PM with the link
     
    • Thank You! Thank You! x 2
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!