Giter VIP home page Giter VIP logo

Comments (7)

lorisleiva avatar lorisleiva commented on August 21, 2024 1

Hi there πŸ‘‹

Thanks for reporting this. Could you please fork this and try to add the libjpeg-dev library? If that fixes your issue, I'll add it here too.

Let me now. 🀞

from laravel-docker.

anroots avatar anroots commented on August 21, 2024 1

This helped me.

https://hub.docker.com/_/php/, under "PHP Core Extensions".

RUN apt-get install -y \
        libfreetype6-dev \
        libjpeg62-turbo-dev \
    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/

This added JPEG support to my Dockerfile and made the imagejpeg() function missing error disappear.

from laravel-docker.

lorisleiva avatar lorisleiva commented on August 21, 2024 1

Thanks for sharing @anroots.

I'll try and implement this natively soon.

Feel free to open a PR if you want to speed up the process. πŸ™‚

from laravel-docker.

richstandbrook avatar richstandbrook commented on August 21, 2024

Well I gave it a go https://github.com/richstandbrook/laravel-docker/blob/master/latest/Dockerfile#L22 but it still seems to have a problem with the same test. It can't be a fundamental problem with Laravel implementation as it works-for-meβ„’ on my local php environment and I can't find reference to the problem anywhere else. It's a strange one.

from laravel-docker.

lorisleiva avatar lorisleiva commented on August 21, 2024

Strange, sorry I've never come across this issue before. May I ask why you're using libjpeg-turbo-dev instead of libjpeg-dev?

from laravel-docker.

lorisleiva avatar lorisleiva commented on August 21, 2024

Okay so I've had to manually add exif to the 7.4 image and in my research, I saw that they simplified the process of configuring gd with RUN docker-php-ext-configure gd --with-freetype --with-jpeg. So I went ahead and decided to support JPEG for 7.4 out of the box.

I'm a bit worried about the breaking changes of backporting this to 7.2 and 7.3 so I'm not sure if I should...

from laravel-docker.

lorisleiva avatar lorisleiva commented on August 21, 2024

Okay so for the sake of consistency and to make sure all images are supporting the same extensions and features, I've added support for JPEG on 7.2 and 7.3.

It's currently building on Docker Hub and should be available in a few minutes.

from laravel-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.