Giter Site home page Giter Site logo

Comments (7)

justinhilles avatar justinhilles commented on July 17, 2024 2

Yah it was my server, thanks!

from image.

olivervogel avatar olivervogel commented on July 17, 2024

imagecreatefromjpeg is a native GD function and not part of the Intervention\Image namespace. Code examples might help.

from image.

pgraham avatar pgraham commented on July 17, 2024

When you say "Yah it was my server" what exactly was the problem? I am facing a similar issue, gd is compiled into PHP and the function works in some VirtualHosts but not others.

Thanks.

from image.

justinhilles avatar justinhilles commented on July 17, 2024

From what i remember, I ultimately found out GD was not installed, check your phpinfo() and double check its activated first

from image.

pgraham avatar pgraham commented on July 17, 2024

Thanks for the reply. I found the problem thanks to you phpinfo() tip. PHP compilation was not finding libjpeg so I manually specified a path with --with-jpeg-dir=...

As for the works on some virtuals hosts but not others I'm guessing I was testing with a png on those other servers.

from image.

massayo avatar massayo commented on July 17, 2024

Please, how did you specify the path with --with-jpeg-dir?

from image.

paulschwarz avatar paulschwarz commented on July 17, 2024

This can be pretty obscure. You might actually have GD install, but not set up for JPEG. See here http://php.net/manual/en/function.imagecreatefromjpeg.php#70832

from image.

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.