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

Enable TIFF image format handling, fixes #344 #345

Merged
merged 4 commits into from
Feb 21, 2022

Conversation

Synchro
Copy link
Contributor

@Synchro Synchro commented Feb 20, 2022

Further to #344, here's a PR to enable TIFF image format support. I saw that there were some vestiges of TIFF format support already (for example the tif property in the test case), so I've made use of that. The test suite runs only with the gd driver, so operations that require imagick (which includes the TIFF format) can't be tested, so I wrote a new test method that reconfigures the test to run with imagick, and skips the test if it's not installed.

I don't understand how the mock works in testGetFormat – I tried copying it but couldn't make it work, so I've not created a similar test for that.

@ADmad
Copy link
Collaborator

ADmad commented Feb 20, 2022

Please add imagick to the extensions list here to ensure it's available

extensions: gd

@Synchro
Copy link
Contributor Author

Synchro commented Feb 20, 2022

I've added that.

.github/workflows/test.yaml Outdated Show resolved Hide resolved
@ADmad ADmad merged commit bff5b0f into thephpleague:master Feb 21, 2022
@Synchro
Copy link
Contributor Author

Synchro commented Feb 21, 2022

Thanks

@ADmad
Copy link
Collaborator

ADmad commented Feb 21, 2022

Thank you! New release done.

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

Successfully merging this pull request may close these issues.

2 participants