You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perf: Replace slow pixel-by-pixel color loop with Image.composite (#391)
The PillowResult.get_image method used a slow, pure-Python loop to apply
styles, causing significant performance degradation on large images.
This commit replaces that implementation with a single, highly-optimized
call to Image.composite, using the rendered B&W image as a mask. This
reduces rendering time by over 90% in test cases.
---------
Co-authored-by: drewkovihair <134556938+drewkovihair@users.noreply.github.com>
Co-authored-by: Krzysztof Wiśniewski <argmaster.world@gmail.com>
0 commit comments