Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow WebP transparency #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jerome-barbato wants to merge 4 commits into gumlet:master from jerome-barbato:master
Closed

Allow WebP transparency #138

jerome-barbato wants to merge 4 commits into gumlet:master from jerome-barbato:master

Conversation

Copy link

@jerome-barbato jerome-barbato commented Feb 21, 2019

No description provided.

Copy link

Pull Request Test Coverage Report for Build 204

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+2.3%) to 83.333%

Totals Coverage Status
Change from base Build 203: 2.3%
Covered Lines: 240
Relevant Lines: 288

💛 - Coveralls

1 similar comment
Copy link

coveralls commented Feb 21, 2019
edited
Loading

Pull Request Test Coverage Report for Build 204

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+2.3%) to 83.333%

Totals Coverage Status
Change from base Build 203: 2.3%
Covered Lines: 240
Relevant Lines: 288

💛 - Coveralls

} else{
$dest_image = imagecreatetruecolor($this->getDestWidth(), $this->getDestHeight());
$background = imagecolorallocate($dest_image, 255, 255, 255);
imagefilledrectangle($dest_image, 0, 0, $this->getDestWidth(), $this->getDestHeight(), $background);
Copy link
Contributor

@peter279k peter279k Feb 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have any test case about this webp transparency?

Copy link
Author

@jerome-barbato jerome-barbato Mar 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, here you are : https://we.tl/t-KAjNhXovT6

The original png + the webp generated with the code modified above

Copy link
Contributor

@peter279k peter279k Mar 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @wearemetabolism, thank you for your reply.

Could you write some test cases with PHPUnit on this PR?

I don't think it's a proper way to provide the project archive about this test I mention...

Copy link
Author

@jerome-barbato jerome-barbato Mar 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @peter279k sure, I've added some test, I don't understand why travis failed.
Tests are ok by my side : OK (42 tests, 76 assertions)

Copy link
Contributor

@peter279k peter279k Mar 14, 2019
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @wearemetabolism, thank you for your reply.

It looks strange after tracing the Travis CI build.

I will take a look at this log clearly.

BTW, could you rebase the commits to one commit? And we can looks the changes easily.

Copy link
Contributor

This is still failing. It should pass before we merge.

@@ -0,0 +1,333 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Contributor

@peter279k peter279k Apr 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need to the clover.xml under the Git version control.

Copy link
Author

@jerome-barbato jerome-barbato Apr 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep I think we should has the build folder in the gitignore

php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2

before_install:
Copy link
Contributor

@peter279k peter279k Apr 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Travis CI build is failed because the configure file is not found.

It seems that you want to compile the PHP with gd extension again.

The configure file should be in the php-src folder and I don't think this folder will be existed in this current working directory.

Copy link
Author

@jerome-barbato jerome-barbato Apr 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, yes I was trying to understand how to enable webp support

Copy link
Author

Hi there, after spending some times to understand the problem, it seems that Travis do not compile php with webp support, I didn't figured out how to reconfigure php to support it, tests failed because until now there wasn't any test about webp...

Copy link
Contributor

The last test failed because it could not find .configure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
1 more reviewer

@peter279k peter279k peter279k requested changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /