php-image-converter icon indicating copy to clipboard operation
php-image-converter copied to clipboard

Problem with WEBP images conversion with Travis CI

Open peter279k opened this issue 6 years ago • 4 comments

As title, I've found these image formats have some concerned problems.

  • According to the official reference, the imagebmp provided by GD extension only supports on php-7.2+.

This package requires php-7.2 version at least and can solve this problem.

That's why I do this on this PR #3.

  • According to the previous failed Travis CI build log, it looks like the php environment in Travis CI doesn't support the webp image.

I think we have to use the customized Docker image inside Travis CI if we need to test the webp image conversion.

peter279k avatar Apr 28 '19 14:04 peter279k

As we talked about somewhere else, PHP 7.1+ should be required.

I don't have a solution for the webp problem, but I think it's important to keep that format, as it may be the standard image format in the future.

jenstornell avatar Apr 30 '19 05:04 jenstornell

@jenstornell, I've created the discussion about webp image support on Travis-CI community.

peter279k avatar Apr 30 '19 06:04 peter279k

@jenstornell, after researching a lot about building PHP with imagewebp support in Travis CI environment, I just find the "hard-core" way to resolve this.

Here are the Travis CI build log and repository:

The Travis CI will use the phpenv to switch pre-installed PHP version for doing CI works.

To avoid this work, I use the sudo permission to install a PHP version in Travis CI environment.

peter279k avatar May 02 '19 07:05 peter279k

I need to learn Travis CI to understand how it all works.

I can see that the last run did not get any errors, so that's a good thing. If this works without too much trouble, maybe we could use that until a better solution shows up?

jenstornell avatar May 02 '19 10:05 jenstornell