Skip to content

Commit df54879

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 45714e2 commit df54879

File tree

1 file changed

+186
-156
lines changed

1 file changed

+186
-156
lines changed

0 commit comments

Comments
 (0)