Skip to content

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Jun 6, 2015

When applying imagegammacorrect() the alpha channel is now fully retained, instead of being completely lost.

I've tested this on Windows 7 and Ubuntu 14.04 (bundled GD lib only).

@pierrejoye @remicollet Please have a look at this PR. The patch seems to be straight forward, and I don't expect it to be a real BC break, because likely nobody used imagegammacorrect() on images with alpha channel (at least without manual correction). At least this might be merged into master for PHP 7.

When applying imagegammacorrect() the alpha channel is now fully retained, instead of being completely lost.
@pierrejoye
Copy link
Contributor

Thx for the patch! Exactly what is needed (gamma correction should not be applied to alpha, for the record)

Should be applied to 5.5+,go ahead :)

@cmb69
Copy link
Member Author

cmb69 commented Jun 6, 2015

Should be applied to 5.5+,go ahead :)

I can't merge it myself; I don't have php-src karma.

@laruence laruence added the Bug label Jun 9, 2015
@php-pulls
Copy link

Comment on behalf of cmb at php.net:

Applied to PHP 5.5+

@php-pulls php-pulls closed this Jun 17, 2015
@cmb69 cmb69 deleted the imagegammacorrect-alpha branch July 12, 2015 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants