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

Saving TIFF images #344

Closed
Synchro opened this issue Feb 20, 2022 · 0 comments
Closed

Saving TIFF images #344

Synchro opened this issue Feb 20, 2022 · 0 comments

Comments

@Synchro
Copy link
Contributor

Synchro commented 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...

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

1 participant