scri.ch is a minimal web app that lets you draw, share, and fork existing drawings.
It is compatible with every modern browser, including mobile devices.
- Draw on the main blank page
- Save using the "Save" button
- Copy the url and share it
- Continue your drawing or make a new one by clicking on the "New" button
You can define some parameters when starting a new drawing, e.g. http://scri.ch/?background=ddd&foreground=666
The background color in hexadecimal, without the #
. Shortcuts allowed. e.g. http://scri.ch/?background=ddd
The foreground color in hexadecimal, without the #
. Shortcuts allowed. e.g. http://scri.ch/?foreground=ddd
The canvas size, in pixels. Syntax:
?size=400
: define same width and height?size=400x
: define width only?size=x400
: define height only?size=400x300
: define both width and height
The margin around the canvas, in pixels. Eg. http://scri.ch/?margin=100
To get the image corresponding to a scri.ch drawing, just append .png to the URL. The drawing will be centered and framed.
Example: http://scri.ch/baf.png
To get a zoomed version of an image, add the needed level of zoom with -2x
where “2” is the level you want, up to 4.
Example: http://scri.ch/baf-2x.png
To get the raw, not cropped version of the image, add -raw
.
Example: http://scri.ch/baf-raw.png
- PHP 5.3
- MySQL 5.x
- Imagick PHP Extension
- Download scri.ch
- Extract the package
- Install the dependencies with Composer
$ composer install
- /tmp and /drawings directories must be writable by the webserver
- Create a new database
- Execute
schema.sql
on the database - Rename
config-example.php
toconfig.php
- Edit
config.php
(see below)
define('SCRICH_URL', 'http://scri.ch/');
Full URL with trailing slash
define('DB_DSN', 'mysql:dbname=scrich;host=localhost');
Database DSN (PDO style)
define('DB_USER', 'username');
Database username
define('DB_PASS', 'password');
Database password
define('DEBUG', FALSE);
Wanna debug?
If you are using the Apache HTTP Server, change the RewriteBase
directive to the scri.ch path (default is /
).
If you are using another HTTP server, you just need to redirect all requests to: index.php?r=$request
.
A simple idea by Pierre Bertet and Raphaël Bastide
- Aude Debout: 404 drawing, testing
- Quick and Dirty: (pro scricher): testing, evangelism
- Jimpunk: scri.ch artist