Skip to content
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

[Bug]: Include xml files for Imagick to prevent issues #280

Closed
robdekort opened this issue Dec 19, 2023 · 16 comments
Closed

[Bug]: Include xml files for Imagick to prevent issues #280

robdekort opened this issue Dec 19, 2023 · 16 comments

Comments

@robdekort
Copy link

Operating system version

macOS Sonoma 14.2

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.3.1

PHP Version

All available PHP versions

Bug description

The Imagick extension is included in Herd, but it seems to missing --with-xml for the imagemagick library. This causes issues with using Imagick like these when trying to use readImageBlob.

See this comment for a possible solution: #90 (reply in thread)

Much appreciated 🙏.

Steps to reproduce

$image = new Imagick();
$svg = file_get_contents("image.svg");
$image->readImageBlob($svg);

Relevant log output

UnableToOpenConfigureFile `delegates.xml' @ warning/configure.c/GetConfigureOptions/722
@robdekort robdekort changed the title [Bug]: Include xml files for Imagick [Bug]: Include xml files for Imagick to prevent issues Dec 19, 2023
@mpociot
Copy link
Member

mpociot commented Dec 19, 2023

I'm waiting for crazywhalecc/static-php-cli#64 to be merged, and then I'll update our builder to fix this 👍

@robdekort
Copy link
Author

Wonderful. Thank you for the update Marcel. I'll keep an eye out.

@mpociot
Copy link
Member

mpociot commented Dec 19, 2023

Just to give you a quick update: I've been working on upgrading our PHP builds the whole day and tested things, but unfortunately the Apple notarization service is currently down, so the PHP updates might take some time to be published (most likely tomorrow).

@robdekort
Copy link
Author

No worries and I really appreciate all the work that goes into this. Happy to test whenever you and Apple are ready.

@msucevan
Copy link

I have the same issue, right. Waiting to be merge soon. Thanks for your work

@mpociot
Copy link
Member

mpociot commented Dec 20, 2023

The builds are now being distributed, starting with ARM64 versions - Intel builds will follow afterward.

PHP 8.3.0 is already available and fixes this bug, the other versions are compiling 🎉

@mpociot mpociot closed this as completed Dec 20, 2023
@robdekort
Copy link
Author

Amazing. Thank you and best wishes for the Holidays Marcel.

@robdekort
Copy link
Author

I can confirm it's fixed in 8.3 🥳

@msucevan
Copy link

msucevan commented Jan 2, 2024

Sorry @mpociot @robdekort for my misunderstanding in this matter. But, I have the newest version of Herd (Intel version) and the newest PHP versions, but I still get the error. I need something to manually update/install?

@mpociot
Copy link
Member

mpociot commented Jan 2, 2024

@msucevan could you tell me which architecture (Intel/M1 etc) you are using and which PHP version?

@robdekort
Copy link
Author

FWIW all still seems good on M1/8.3.

@msucevan
Copy link

msucevan commented Jan 2, 2024

@mpociot I'm using Intel with 8.1

@bitbirddev
Copy link

bitbirddev commented Jan 5, 2024

i would love to have avif/heic/heif/lcms delegates for imagemagick. since it is compiled in the php binary i can't update it via pecl. my local imagemagick has the named Delegates but php's imagemagick extension always uses that one shipped with herd...

@davideprevosto
Copy link

@bitbirddev have you found a fix for the avif/heic delegaetes? I am using Herd for WordPress website too and I am not sure how to enable the avif support.

@bitbirddev
Copy link

bitbirddev commented Apr 18, 2024

@davideprevosto i'm sorry but i haven't found any solution yet. if you do, please let me know :P

@davideprevosto
Copy link

@davideprevosto i'm sorry but i haven't found any solution yet. if you do, please let me know :P

@bitbirddev I will try to use Valet

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

5 participants