Imagerie is a small lightweight PHP package intended to provide a free alternative to Gyazo Ninja.
- HTML5 compliant1
- CSS3 Shadows
- A password protected gallery that allows you to manage pictures
- For use with custom Gyazo builds
- Clean minimalistic design
- Facebook OpenGraph tags
1OpenGraph tags on the image display page (
display.php) are not recognized as standards by W3C and therefore render the webpage invalid with that one error
- A up to date HTML5 and CSS3 compliant browser (IE 8 and above, as well as Chrome, Firefox and Safari should be fine)
- Apache or another webserver2
- A custom build of Gyazo that uploads to said webserver
- PHP-GD for OpenGraph and resizing
.htaccess files that are required for the script to work properly. There is an nginx version of the main rewrite
.htaccess supplied, but it was created from an online converter. It may require edits. For all other webservers, you will have to create your own rewrite rules
index.phpsimply points to the gallery web page
gallery.phpis the gallery web page where you can manage your images
display.phpdisplays a single image like how Gyazo normally shows images
thumb.phpgenerates thumbnails and resizes images. It is a copy of the TimThumb script.
gyazo.phpis a script Gyazo calls to upload images. The package is configured to use the
./uploads/directory to store uploaded images. This can be changed by replacing all instances of
uploads/in the script with your directory name.
trash.phpis called when a image is to be deleted. It moves the image into the
./dump/directory, where it will be unable to be accessed, and can be removed or restored manually.
Installation and Usage
First, upload all the files in the webserver directory to your website root, including the folder structure. I recommend you set up a VirtualHost subdomain if using Apache. For security, you may rename
gyazo.php. Remember what you named it later.
$password variable in
gallery.php to something else other than the default
password. This is used to login to the gallery.
Now, compile a custom version of Gyazo that uploads to your webserver. Submodules containing Gyazo source code for Windows, OSX, and linux can be found under the gyazo folder in this repository.
Compile with Visual Studio 2008.
Turn off code signing in Xcode if you do not have a certificate.
Compile with Xcode
To get the raw image, add
raw as a GET parameter to the display page. Adding
h as a GET parameter to the display page will scale accordingly, for example
This also works without raw, for example see here for a demo.
Feel free to change the CSS to your liking.
trash.php should not be called directly.