-
Notifications
You must be signed in to change notification settings - Fork 32
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
fix: update package names and handle Intervention Image versioning in favicon generation #45
base: master
Are you sure you want to change the base?
Conversation
Please link to where the change was made (code before and after the change) |
@stancl thanks for your queries. in version 2 the image libraries class Update: after make changes I have tested this code and found that this library References: |
I'm asking for a link to where this was changed. I can see the diff of this PR. |
Again, I can see that from the diff. I'm asking you about this:
Link the change in intervention. |
https://github.com/Intervention/image/blob/develop/src/ImageManager.php#L27 |
Looks like the change was made here Intervention/image@7eb29db, in one of the earlier commits of v3. Can you update the PR to support both v2 and v3? We don't have intervention/image as a dependency so ideally both should be handled. |
… favicon generation
@stancl I've updated the PR to support both Intervention Image v2 and v3 as requested. The implementation now:
I've also updated the package dependencies to support both versions: The changes have been tested with both Intervention Image v2 and v3, and the favicon generation works correctly in both cases. |
This PR addresses a TypeError that occurs when running the
seo:generate-favicons
command with Intervention Image v3. The current implementation is passing an array configuration to the ImageManager constructor, which is no longer compatible with the v3 API that requires a driver instance or class name as the first argument.Changes made:
Issue fixed:
This resolves the following error that occurs when trying to generate favicons:
Testing:
The command was tested with Intervention Image v3 and successfully generates all favicon files as expected.