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 events for image uploads #98

Merged
merged 11 commits into from
Dec 13, 2023
Merged

Add events for image uploads #98

merged 11 commits into from
Dec 13, 2023

Conversation

Woeler
Copy link
Contributor

@Woeler Woeler commented May 25, 2023

This PR adds events for image uploads and thumbnail generation. This allows users to hook into these processes. I for instance want to convert uploaded images to webp, and use the OG image as fallback. With these events I can now just listen for uploads and dispatch conversion jobs.

I'm sure there are many other things people will be able to do with this feature.

Resolves #84

composer.json Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
@Woeler
Copy link
Contributor Author

Woeler commented Jul 13, 2023

Thanks for your comments. I will update this pr this week!

Woeler and others added 3 commits July 13, 2023 09:46
Co-authored-by: Roelof <github@roelofr.dev>
@Woeler
Copy link
Contributor Author

Woeler commented Jul 19, 2023

I am unsure why the v8 tests keep failing. Running them locally produces no such errors.

@Woeler
Copy link
Contributor Author

Woeler commented Nov 21, 2023

@roelofr Alright, everything seems to be good now

@Woeler Woeler requested a review from roelofr November 21, 2023 09:44
Copy link
Collaborator

@roelofr roelofr left a comment

Choose a reason for hiding this comment

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

Hey, thanks for picking this back up after the pipelines were fixed.

As time moves on, so does my understanding of code, It seems like a good idea to remove unused traits, but other than that it looks ready to roll.

Please add a CHANGELOG entry so we can keep track of these changes, then we'll get this merged in.

src/Events/EditorJsThumbnailCreated.php Outdated Show resolved Hide resolved
src/Events/EditorJsImageUploaded.php Outdated Show resolved Hide resolved
Woeler and others added 3 commits November 24, 2023 19:47
Co-authored-by: Roelof <github@roelofr.dev>
Co-authored-by: Roelof <github@roelofr.dev>
@Woeler Woeler requested a review from roelofr November 28, 2023 18:33
@roelofr roelofr merged commit c7921ad into advoor:master Dec 13, 2023
7 checks passed
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.

Throw events when an image has been uploaded
2 participants