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

Add webp support to letterbox filter #2528

Merged
merged 2 commits into from
Feb 2, 2022
Merged

Add webp support to letterbox filter #2528

merged 2 commits into from
Feb 2, 2022

Conversation

ThomasBerends
Copy link

Ticket: None

Issue

The letterbox class does not support webp images.

Solution

Add support for webp images

Impact

The 'imagewebp' & 'imagecreatefromwebp' functions were added in PHP 5.4. The Timber Wordpress page reports a minimum PHP version of 5.6, however, the current composer.json shows 5.3. I'm not sure if the composer.json is out of date or not.

Usage Changes

There should be none

Considerations

See Impact

Testing

There doesn't seem to be specific tests for the different extensions.

Copy link
Member

@jarednova jarednova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just fixed up the indentation

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 92.294% when pulling 31dc888 on ThomasBerends:feature/letterbox-webp into 80a26d2 on timber:master.

@jarednova jarednova merged commit f516995 into timber:master Feb 2, 2022
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.

None yet

3 participants