Giter Site home page Giter Site logo

PNG does not work about php-imagick-webapps HOT 11 CLOSED

snobu avatar snobu commented on June 12, 2024
PNG does not work

from php-imagick-webapps.

Comments (11)

snobu avatar snobu commented on June 12, 2024

Do you have that directory added to the PATH?
If you don't, either add it to the XML transform or use my exact folder structure from the repo.

from php-imagick-webapps.

Himura2la avatar Himura2la commented on June 12, 2024

Yes, I have. JPEG works fine

from php-imagick-webapps.

snobu avatar snobu commented on June 12, 2024

Are you using the exact same binaries as stored in this repo?

from php-imagick-webapps.

Himura2la avatar Himura2la commented on June 12, 2024

I followed this https://blogs.msdn.microsoft.com/azureossds/2015/12/07/php-imagemagick-on-azure-web-apps/ tutorial and using the up to date version if the lib. But I tried to substitute the PNG dll with no luck. By the way, the tutorial by the link seems to face exactly the same problem (PNG in comment, but GIF in code)

from php-imagick-webapps.

snobu avatar snobu commented on June 12, 2024

Could be. Either try a newer ImageMagick build and match with the appropriate PECL .dll version or just use the binaries from this repo, but to be honest i don't remember if PNG works here either.

You're probably better off building on top of a container that already has all the ImageMagick stuff figured out and deploy to App Service on Linux.

https://hub.docker.com/search/?isAutomated=0&isOfficial=0&page=1&pullCount=0&q=imagemagick+php&starCount=0

from php-imagick-webapps.

Himura2la avatar Himura2la commented on June 12, 2024

If I had an Azure subscription that allows anything except a simple website and a database (free DreamSpark subscription), I would definitely use docker. The png dll from this repo doesn't work when I try to replace only one dll with it. Maybe I should try replacing the core dlls too, but I'd better use JPEG ))
Can you please tell more about the PECL dlls? Where can I get other versions?

from php-imagick-webapps.

snobu avatar snobu commented on June 12, 2024

There's a link to PECL in the README: https://pecl.php.net/package/imagick
If you decide to use the bits here, use ALL of them, not just some DLLs. ImageMagick binaries and the PECL binaries must match for anything to work right (the PECL .DLL will call function signatures in the CORE DLLs, and the CORE DLLs call into the CODEC DLLs - IM_MOD_*).

EDIT:
Actually i have that wrong. php_imagick.dll (PECL) comes with the codecs and the signatures must match the ones in the ImageMagick binaries. This is why nobody should trust a word i say here and go research this on the ImageMagick forums instead.

from php-imagick-webapps.

snobu avatar snobu commented on June 12, 2024

I have updated the README for PHP 7.0 and made it a little easier to figure out the php_imagick module dependency. Good luck.

from php-imagick-webapps.

Himura2la avatar Himura2la commented on June 12, 2024

I got it working, thanks for the good manual)

from php-imagick-webapps.

snobu avatar snobu commented on June 12, 2024

For completeness sake, I tested and PNG does work with the binaries referenced in README.

from php-imagick-webapps.

snobu avatar snobu commented on June 12, 2024

^ for PHP 7.0 that is.

from php-imagick-webapps.

Related Issues (6)

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.