Issue Bug Closed

#71825image rendering results in very hight file size

Christian von Holten 11/25/15, 12:35 updated 02/26/16, 17:29

Description

Hello,

I noticed a very strange behavior of image rendering. The file size of a compressed jpg, which is rendered by graphicsmagick is as much as bmp, but you can see some artefacts as well.

If I change the resulting format to png or gif, the file size is much less than the jpg.

I have done a workaround, but this only helps to fight the symptoms, not knowing the reason.

10 = FILES
10 {
  references {
    table = pages
    fieldName = media
  }

  renderObj = IMAGE
  renderObj {
    file {
      quality = 80
      import.data = register:imageURL
      maxW = 150
      ext = jpg
    } 
  }
}

This results in bad image quality and very high file size

10 = FILES
10 {
  references {
    table = pages
    fieldName = media
  }

  renderObj = COA
  renderObj {
    10 = LOAD_REGISTER
    10.imageURL.data = file:current:publicUrl

    20 = IMAGE
    20 {
      file = GIFBUILDER
      file {
        XY = [10.w],[10.h]
        format = jpg
        quality = 80
        10 = IMAGE
        10 {
          file {
            import.data = register:imageURL
            maxW = 150
          }
        }
      }
    }
  }
}

This ist my workaround.

Can anybody comprehend this behaviour?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.