Skip to content

Watch "processing" collection and process images - #46

Open
thekid wants to merge 9 commits into
mainfrom
feature/online-processing
Open

Watch "processing" collection and process images#46
thekid wants to merge 9 commits into
mainfrom
feature/online-processing

Conversation

@thekid

@thekid thekid commented Nov 19, 2022

Copy link
Copy Markdown
Owner

Implements media processor container as described in #44

Build and run

Run the following commands:

$ docker build -t thekid/dialog-processing -f Dockerfile.processing .
# ...

$ docker run --rm -it -e DIALOG_API -e MONGO_URI -e MONGO_DB thekid/dialog-processing
# ...

Trigger

Copy the original image into the imports directory, simulating an upload. Then, insert the following document into the processing collection:

{
  "slug":"rueppur_alb_2022-11-13",
  "file":"20221113_151718315_iOS.jpg",
  "at":{"$date":{"$numberLong":"1668873515000"}},
  "state":"new"
}

Example

Processing an image

image

Error handling

After connection was closed

image

@thekid thekid added the enhancement New feature or request label Nov 19, 2022
Comment thread src/main/php/de/thekid/dialog/processing/Watch.php Outdated
@thekid thekid mentioned this pull request Nov 20, 2022
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant