imagick driver: 'format' method issue #228
lightsuner
started this conversation in
General
Replies: 1 comment
-
Hi, could you submit a PR that fixes this? If possible, include a test. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Spatie,
Thanks for the library!
Issue
I've come across different behaviours of
gd
andimagick
drivers.avif
.tmpfile()
.tmpfile()
- creates a file without an extension, like:/tmp/phpFx0513a
.So here is a code example:
$driver
isgd
, everything works as expected.$driver
isimagick
, I receive the following error:In my opinion, there is a bug in the
imagick
driver, as it tries to fetch the format from the destination file's extension and ignores the$image->format('avif')
method.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions