Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Output buffering may truncate image output #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 21, 2022

  1. OB truncates output

    In some server configurations, output buffering will cause the image content to be truncated by approximately 5 rows of pixels. I can confirm that this happened with both PHP 7.4 and 8.0, using both GD and Imagick drivers. I was able to recreate the original issue by using `ob_start()` on the affected line using my local MAMP environment. Switching it to `ob_end_clean()` resolve the issue on both my development and the production machines.
    
    The solution is to just end output buffering before processing the response.
    rk committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    06a7b4d View commit details
    Browse the repository at this point in the history