Skip to content

Commit 0db0d51

Browse files
committed
ext/gd: de-factorize image output functions
The image output functions imagegif/imagepng/imagewebp/imageavif/imagejpeg were all calling the static function _php_image_output_ctx which was basically a big switch statement between each image type which also have different parameters. The only identical part was the call to create_stream_context_from_zval that is now merged with create_output_context.
1 parent 84a0da1 commit 0db0d51

File tree

1 file changed

+183
-156
lines changed

1 file changed

+183
-156
lines changed

0 commit comments

Comments
 (0)