You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Glide through spatie/image, and I need to be able to save TIFF format images. Having found #149 which said that all I needed to do was use the imagick driver instead of gd (because imagick supports TIFF and gd does not), I switched to imagick. I was then a bit mystified to find that while it produced files with a .tiff extension, they actually contain JPEG data.
I tracked this down to this code, which restricts the available output formats, but also makes the output default to JPEG data without changing the filename, which explains my symptoms. Adding TIFF to that array allows it to work, but I can't see how it could work without it, making the answer to that issue a mystery!
PR incoming...
The text was updated successfully, but these errors were encountered:
Synchro
added a commit
to Synchro/glide
that referenced
this issue
Feb 20, 2022
I'm using Glide through spatie/image, and I need to be able to save TIFF format images. Having found #149 which said that all I needed to do was use the imagick driver instead of gd (because imagick supports TIFF and gd does not), I switched to imagick. I was then a bit mystified to find that while it produced files with a
.tiff
extension, they actually contain JPEG data.I tracked this down to this code, which restricts the available output formats, but also makes the output default to JPEG data without changing the filename, which explains my symptoms. Adding TIFF to that array allows it to work, but I can't see how it could work without it, making the answer to that issue a mystery!
PR incoming...
The text was updated successfully, but these errors were encountered: