Bug 48964

Summary: Slow rendering of pdf with a lot of image masks in pattern colorspace
Product: poppler Reporter: Thomas Freitag <Thomas.Freitag>
Component: splash backendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: create softmask not bigger than necessary

Description Thomas Freitag 2012-04-20 04:31:45 UTC
I got a PDF with 12153 image masks in pattern colorspace. Rendering it with pdftoppm under Windows stops after after over 20 minutes with out of memory.

The implementation of rendering image masks in pattern colorspace should be optimized in the splash backend.
Comment 1 Thomas Freitag 2012-04-24 01:06:21 UTC
Created attachment 60513 [details] [review]
create softmask not bigger than necessary

This patch don't take the whole bitmap for colorizing an image mask with pattern colorspace but just a bitmap which has the size of the image mask itself.
This speeds up the rendering dramatically if a lot of small image masks in pattern colorspace must be rendered.
Comment 2 Albert Astals Cid 2012-04-24 10:21:15 UTC
Do you have any other pdf other than that unshareable one that shows an speed improvement?
Comment 3 Albert Astals Cid 2012-04-25 09:52:03 UTC
Fix commited.

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.