Created attachment 112208 [details] pixelated circular shading When the attached pdf is opened with a poppler based viewer the circular shading is rendered in a pixelated fashion, while in other viewer it looks smooth.
Created attachment 112209 [details] pixelated circular shading
Created attachment 112285 [details] [review] Implement cairo function shading The pdf contains a function based shading. Gfx subdivides the shading then draws each cell with a solid color resulting in a pixelated appearance for both cairo and splash. This could be fixed by reducing the size of each cell to 1 pixel. However this could significantly increase rendering time as the function has to be evaluated for each pixel. The better fix is to interpolate the colors in each cell instead of using solid fills. I've fixed this for the cairo backend by using cairo mesh gradients to interpolate the colors in each cell. I should also point out that the conical gradient in this particular pdf could have been created with a type 6 shading (coons patch meshes). This would produce a better result and does not rely on evaluating a type 4 PostScript calculator function.
Pushed, sorry for the delay reviewing this. Thanks!
*** Bug 70259 has been marked as a duplicate of this bug. ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.