Revival of the old ZapMachine. A collage machine that merges random images layer by layer remaining about 50% of the original images
  • PHP 84.6%
  • Go Template 6.7%
  • JavaScript 6.1%
  • CSS 2.6%
Find a file
2026-07-19 20:17:37 +02:00
cli_scripts session directory prefix; reset.php made saver. (isues #17 and #16) 2026-07-19 20:17:37 +02:00
conf default no debug. clever solution for api keys in git ignored local conf file. 2026-07-17 21:58:05 +02:00
docs made ZapHandler library 2026-07-18 11:56:54 +02:00
lib session directory prefix; reset.php made saver. (isues #17 and #16) 2026-07-19 20:17:37 +02:00
resource Brave request Fix. Path seperator fix. 2026-07-17 12:34:37 +02:00
tpl 0.9.0 - the ZapV version updated to current php standards. Brave search used, while Bing and Google search api are deprecated 2026-07-15 13:57:05 +02:00
utils 0.9.0 - the ZapV version updated to current php standards. Brave search used, while Bing and Google search api are deprecated 2026-07-15 13:57:05 +02:00
www 0.9.0 - the ZapV version updated to current php standards. Brave search used, while Bing and Google search api are deprecated 2026-07-15 13:57:05 +02:00
.gitignore default no debug. clever solution for api keys in git ignored local conf file. 2026-07-17 21:58:05 +02:00
changelog.txt 0.9.0 - the ZapV version updated to current php standards. Brave search used, while Bing and Google search api are deprecated 2026-07-15 13:57:05 +02:00
LICENSE Initial commit 2026-06-27 23:44:40 +02:00
README.md default no debug. clever solution for api keys in git ignored local conf file. 2026-07-17 21:58:05 +02:00

ZapMachine

Revival of the old ZapMachine. A collage machine that merges random images layer by layer remaining about 50% of the original images

ApFab - Zap Machine V0.9.0

🄯 2009 - 2026 Fabian de Boer, Vincent Bruijne www.apfab.com

Zap stands for 'Zapped Artificial Picture', a collage made from Internet images. A Zap translates a set of words or a text into an image which reflects the visual representation of the words on the Internet.

This web application, Zap Machine, needs a number of words as input. It then takes the most relevant image that search engine Yahoo comes up with. After having collected all images the Zap Machine creates a given number of different collages from those images.

installation

First you need to run a server with PHP. Please do not use a Windows machine for this purpose, while Windows suck. ApFab recommends Linux or Mac;)

ApFab Zap Machine needs some PHP extensions:

  • JSON (default installed)
  • CUrl (default installed)
  • Imagick (Image Magick image processing Class)

You need to acquire the following API key:

  1. Brave Search API Key - https://api.search.brave.com/

Then set up your configuration:

# Create your local config from the template
cp conf/conf.local.php.dist conf/conf.local.php
# Edit it with your real keys
nano conf/conf.local.php

conf/conf.local.php is gitignored so your secrets stay safe. You can also set the BRAVE_API_KEY environment variable as an alternative.

Adjust permission (chmod 777) for 'sessions' folder, then run index.php in the www/ directory, fill in the form and voila.

yet to come

  • Logfile also generated in imgProcess Class (0.9.2)
  • Number and camera filename (virgin images) input (0.9.3)
  • Proper stop meganism (0.9.1)
  • better error handling: dead links give dynamicly generated image thats allso used in collage (0.9.3)
  • visualisation of logfile, so viewers can see what is happening (0.9.1)
  • replacing all 'random' image processing parameters (0.7)