Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-102

Don't stretch cover art that's too small

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Low Low
    • None
    • None
    • Templates
    • None

      copied from http://bugs.musicbrainz.org/ticket/5540

      if the cover art is too small, it gets stretched to fit the width which doesn't look particularly great, e.g. http://test.musicbrainz.org/release/ebd0dcd2-c740-46a1-b512-943213ab1684 when the image is actually much smaller http://ec1.images-amazon.com/images/P/B00005EDCM.09.MZZZZZZZ.jpg

      I managed to fix it for me by removing the HTML width="150" from the image and using the CSS "max-height: 200px; max-width: 150px;" instead (I made the max-height a bit bigger than the width to accommodate DVD-sized covers better, square art will still be square and small art won't be stretched). It works for me in Opera, Safari and Firefox, but I can't test in IE so it would need more testing to see if it works in the versions of IE we said we'd support.

            navap Pavan Chander
            nikki nikki
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package