Uploaded image for project: 'Image Archives'
  1. Image Archives
  2. IMG-63

PNG image scaling loses transparency, has artifacts because of JPEG

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None

      Since all scaled CAA images are converted to JPEG, which doesn't support transparency, transparent PNGs can look pretty ugly.

      Example: https://musicbrainz.org/release/7c09bd96-1fa9-486b-bfaa-57e6b217715c/cover-art

      Maybe they should simply be rendered with a white or black background before converting to JPEG?

          [IMG-63] PNG image scaling loses transparency, has artifacts because of JPEG

          ROpdebee added a comment -

          The transparency issue with PNGs was addressed by the IA and I've been told that a fix will be deployed soon. A test of the new derivation has been run on the example given in this ticket, you'll see that the glitches exhibited in the screenshot aren't present anymore in the newly derived thumbnail. Similarly to CAA-117, existing images with these problems would have to be re-derived. I'll compile a list of those to send to the IA.

          ROpdebee added a comment - The transparency issue with PNGs was addressed by the IA and I've been told that a fix will be deployed soon. A test of the new derivation has been run on the example given in this ticket, you'll see that the glitches exhibited in the screenshot aren't present anymore in the newly derived thumbnail. Similarly to CAA-117 , existing images with these problems would have to be re-derived. I'll compile a list of those to send to the IA.

          Zas added a comment -

          Another case where png transparency is rendered badly in jpeg thumbnails:
          http://musicbrainz.org/release/a75c8724-5e06-4321-807d-cb4a0fc5558f/cover-art

          Zas added a comment - Another case where png transparency is rendered badly in jpeg thumbnails: http://musicbrainz.org/release/a75c8724-5e06-4321-807d-cb4a0fc5558f/cover-art

          Trevor added a comment -

          I would recommend leaving the files in their native format when generating a thumbnail.

          Trevor added a comment - I would recommend leaving the files in their native format when generating a thumbnail.

            ROpdebee ROpdebee
            intgr intgr
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package