Skip to content

unrecognized --with-jpg-dir and --with-png-dir #3

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
llslim opened this issue Feb 1, 2020 · 0 comments
Closed

unrecognized --with-jpg-dir and --with-png-dir #3

llslim opened this issue Feb 1, 2020 · 0 comments

Comments

@llslim
Copy link
Owner

llslim commented Feb 1, 2020

I came accross the same issue. I could repair it by changing the line

docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr

into

docker-php-ext-configure gd --with-freetype --with-jpeg

I could not find a --with-png option, but png resizing worked in my case. So maybe png support is a built in default as of PHP 7.4.

A further change I had to make was to include the libonig-dev apt package in order to compile the pdo module.

It's strange that the README.md and the description on Docker Hub don't give examples how to compile pdo and gd properly on PHP 7.4, but only give it for PHP 7.2 (which still works for 7.3 as well).

Originally posted by @richardbrinkman in docker-library/php#912 (comment)

@llslim llslim changed the title Fixed the issue of unrecognized --with-jpg-dir and --with-png-dir unrecognized --with-jpg-dir and --with-png-dir Feb 1, 2020
llslim added a commit that referenced this issue Feb 1, 2020
llslim added a commit that referenced this issue Feb 1, 2020
llslim added a commit that referenced this issue Feb 1, 2020
@llslim llslim closed this as completed Feb 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant