New issue
Advanced search Search tips

Issue 838497 link

Starred by 6 users

Issue metadata

Status: Unconfirmed
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Headless PrintToPDF Images Low-Quality With CSS filters applied

Reported by asonc...@gmail.com, May 1 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36

Steps to reproduce the problem:
1. Apply a CSS filter on an image
2. Print with these arguments:

{
      landscape:           true,
      displayHeaderFooter: false,
      printBackground:     true,
      scale:               1,
      paperHeight:         6,
      paperWidth:          4,
      marginTop:           0,
      marginLeft:          0,
      marginRight:         0,
      marginBottom:        0,
      pageRanges:          '', // all pages
      preferCSSPageSize:   true
    }

3. Notice that the image quality appears visibly downgraded.

What is the expected behavior?
Image quality should not suffer when adding a CSS filter.

What went wrong?
Note the image without the filter appears high-resolution. The filter (any CSS filter) appears to impact the image qualty.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 66.0.3359.139  Channel: stable
OS Version: 
Flash Version:
 
in.html
749 bytes View Download
out.pdf
580 KB Download

Comment 1 by asonc...@gmail.com, May 1 2018

I've created a repository here with an executable test case (NodeJS Headless PrintToPDF + Linux).

https://github.com/soncodi/chromium-headless-printtopdf/tree/css-filter-downgrade


Comment 2 by asonc...@gmail.com, May 1 2018

Please make sure to use the "css-filter-downgrade" branch.
Labels: Needs-Triage-M66
Components: Internals>Headless
Labels: Proj-Headless Triaged-ET
asoncodi@ Thanks for the issue.

As this issue is related to Headless PrintToPDF, adding the appropriate label and requesting Internals>Headless team to look into the issue and help in further triaging.

Thanks..
Labels: TE-NeedsTriageHelp
As per comment #4, adding label TE-NeedsTriageHelp for further investigation from 	
Internals>Headless team.

Thanks...!!
Hi, any update on this ticket? Were you able to reproduce the issue?

Sign in to add a comment