Working on images asynchronously
Let’s create our test image first:
$ convert magick:rose test.jpg
From the command-line run the thumbnail script:
$ php thumbnail.php
In a separate terminal window run the event collector:
$ php collector.php
And finally run the client to send the thumbnail request:
$ php client.php