Instagram with ImageMagick & PHP

Related tags

Imagery instagraph
Overview

Instagraph - Instagram with ImageMagick & PHP

In this repository, I’ll demonstrate you how to create vintage (just like Instagram does) photos effects with PHP and ImageMagick. Wait? What? Yes, you can do this very thing with PHP and ImageMagick, and that’s just scratching the surface of allmighty Imagemagick!

In Few Short Lines

  • Requires PHP 5.3 + Imagemagick (not Imagick extension)
  • Features Lomo, Nasvhille, Kelvin, Toaster, Gotham, Tilt-Shift
  • ???
  • I don't own a "smartphone" so I can't use real Instagram app to compare

Example Usage

<?php

$instagraph = new Instagraph;
$instagraph->setInput('sucks.jpg');
$instagraph->setOutput('rocks.jpg');
$instagraph->process('toaster');
# You can see changes in output file now

Demo

Demo application is included, it looks like:

Demo

Live demo will be up soon on: Instagraph.me

Virtual Host for Apache
Listen *:1337

<VirtualHost *:1337>
ServerName Instagraph
DocumentRoot /var/www/instagraph/public
    <Directory "/var/www/instagraph/public">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

If on Windows, just replace /var/www/ with e.g. C:\www\.

Contributing to Instagraph

Contributions are welcome, if you have ideas or filters, or even better, some code for them, please open up Issue or Pull Request.

License

Instagraph is open-sourced software licensed under the MIT License.

Comments
  • instagraph.me not working

    instagraph.me not working

    Hi there, I like your code, and have used it successfully for me needs. I just wanted to give you the heads up the instagraph.me has been out of action for the last month, it can't seem to find the file it hashes to.

    On that note, I was wondering if you could perhaps give insight into the process that instagraph.me takes after a user has uploaded a file? Are you simply naming this file with a uid and using your .htaccess to reroute a page query to to a unique url?

    opened by tiltos 2
  • Version Problem

    Version Problem

    I've uploaded your script at my host and some effects didn't work (Lomo, toaster and nashville). I saw that a user posted the same problem in: http://net.tutsplus.com/tutorials/php/create-instagram-filters-with-php/

    Did you solve it? Would it be a version problem? How clould I solve it?

    Thanks

    opened by danielaugustoca 2
  • No License

    No License

    I'm looking at using this for a little project, and there's no license file or any indication of whether I'm allowed to use it in production. I'm happy to make a pull request with an MIT license if you do want to license it that way. Otherwise adding "All Rights Reserved" or something to the README would make things clear.

    Thanks! -Michael

    opened by MikeSofaer 2
  • about copy() and rename function

    about copy() and rename function

    Hello , can we replace these two function by linux function ? . I am using linux server and with these two function , linux give me "Permission denied" problem due the SELinux.

    opened by NyamdavaaAyush 1
  • fixes for lomo and kelvin filters

    fixes for lomo and kelvin filters

    Hi i added two fixes on the lomo and kelvin filters which seemed not be working at least on my server. you can view the changes on the code. maybe this is a provlem on others as well. i downloaded the latest version of imagemagick on my server with yum installer

    opened by ropox 0
  • Minor adjustments

    Minor adjustments

    Some minor adjustments in order to run the code from the built-in php server, moved all styles to an external css files, moved all js code to an external javascript file. index.php now uses 4 spaces indentation, among others.

    opened by erickthered 0
  • Library does not output the same results on a different box

    Library does not output the same results on a different box

    This is follow-up of my e-mail sent to @webarto and my StackOverflow question. I downloaded Instagraph and used it with my freshly installed ImageMagick, but the output is different than presented. My version of ImageMagick is ImageMagick 6.7.7-10 2012-08-17 Q16.

    As mentioned in the SO question, problem is with colortone function. Expected output is following:

    expected

    What I get:

    test_toaster

    My script looks like this:

    <?php
    include(dirname(__FILE__) . '/Instagraph.php');
    $instagraph = new Instagraph;
    $instagraph->setInput('test.jpg');
    $instagraph->setOutput('test_toaster.jpg');
    $instagraph->process('toaster');
    

    What could cause such behavior? Am I doing something wrong?

    opened by honzajavorek 3
  • How about merging this library with Imagine library?

    How about merging this library with Imagine library?

    Hi @webarto. You have a nice library here.

    We've been using Instagraph lib together with Imagine library which made me thinking. For the sake of having lesser and better libraries in the world, would it be a good idea for you to consider merging this one to Imagine. It seems to me Instagraph filters could fit nicely into filters section of Imagine (although I'm not a specialist of Imagine, so I don't really know). Also I have no influence on Imagine lib, so I'm basically just throwing ideas.

    opened by TomiS 0
Owner
Dejan Marjanovic
Dejan Marjanovic
Fetch instagram photos without the need for app aproval

Fetch instagram photos without the need for app aproval. This plugin will download the photos and/or video thumbnails to local storage. All media will be stored in a json file.

GeNx 39 Dec 7, 2022
PHP Exif Library - library for reading and writing Exif headers in JPEG and TIFF files using PHP.

PEL: PHP Exif Library README file for PEL: PHP Exif Library. A library with support for reading and writing Exif headers in JPEG and TIFF images using

null 264 Dec 4, 2022
PHP Image Manipulation

Intervention Image Intervention Image is a PHP image handling and manipulation library providing an easier and expressive way to create, edit, and com

null 13k Jan 3, 2023
PHP 5.3 Object Oriented image manipulation library

Imagine Tweet about it using the #php_imagine hashtag. Image manipulation library for PHP 5.3 inspired by Python's PIL and other image libraries. Requ

Bulat Shakirzyanov 4.3k Jan 6, 2023
🌄 Perceptual image hashing for PHP

ImageHash A perceptual hash is a fingerprint of a multimedia file derived from various features from its content. Unlike cryptographic hash functions

Jens Segers 1.9k Dec 28, 2022
GifCreator is a PHP class that creates animated GIF from multiple images

================================ GifCreator ================================ GifCreator is a PHP class to create animated GIF from multiple images For

Clément Guillemain 320 Dec 15, 2022
GifFrameExtractor is a PHP class that separates all the frames (and their duration) of an animated GIF

================================ GifFrameExtractor ================================ GifFrameExtractor is a PHP class that separates all the frames (an

Clément Guillemain 173 Dec 12, 2022
Image Cache is a very simple PHP class that accepts an image source and will compress and cache the file, move it to a new directory, and returns the new source for the image.

NO LONGER MAINTAINED!!! Image Cache v. 1.0.0 Image Cache is a very simple PHP class that accepts an image source and will compress and cache the file,

Erik Nielsen 455 Dec 30, 2022
PHP Captcha library

Captcha Installation With composer : { ... "require": { "gregwar/captcha": "1.*" } } Usage You can create a captcha with the Captc

Grégoire Passault 1.6k Dec 25, 2022
A BPMN 2.0 workflow engine for PHP

Workflower A BPMN 2.0 workflow engine for PHP Workflower is a BPMN 2.0 workflow engine for PHP. Workflower runs business processes using the BPMN 2.0

PHP Mentors 640 Jan 7, 2023
A Sharex IMG uploader that runs with PHP | Use a hosting site if you're a beginner use 000webhost

Sharex-Img-Uploader A Sharex IMG uploader that runs with PHP | Use a hosting site if you're a beginner use 000webhost Setting up SXCU In YOUR_DOMAIN_U

Pix 10 Nov 26, 2022
A PHP GD + TwitterOAuth demo to dynamically generate Twitter header images and upload them via the API.

A PHP GD + TwitterOAuth demo to dynamically generate Twitter header images and upload them via the API. This enables you to build cool little tricks, like showing your latest followers or sponsors, latest content creted, a qrcode to something, a progress bar for some goal, and whathever you can think of.

Erika Heidi 172 Jan 5, 2023
php-gd based image templates

gdaisy A highly experimental image templating system based on PHP-GD to dynamically generate image banners and covers. Installation 1. Require erikahe

Erika Heidi 67 Nov 22, 2022
Grabs the dominant color or a representative color palette from an image. Uses PHP and GD, Imagick or Gmagick.

Color Thief PHP A PHP class for grabbing the color palette from an image. Uses PHP and GD or Imagick libraries to make it happen. It's a PHP port of t

Kevin Subileau 610 Dec 28, 2022
An easy-to-use PHP QrCode generator with first-party support for Laravel.

An easy-to-use PHP QrCode generator with first-party support for Laravel.

Simple Software LLC 2.2k Jan 5, 2023
Get started with the Microsoft Graph SDK for PHP

If you want to play around with the PHP library, you can get up and running quickly with the PHP Connect Sample. This sample will start you with a little Laravel project that helps you with registration, authentication, and making a simple call to the service.

Microsoft Graph 423 Dec 28, 2022
This is a class of php QR Code, This library helps you generate QR codes in a jiffy.

This is a class of php QR Code, This library helps you generate QR codes in a jiffy.

null 59 Oct 5, 2022
phpThumb() - The PHP thumbnail generator

phpThumb phpThumb() - The PHP thumbnail generator phpThumb() uses the GD library and/or ImageMagick to create thumbnails from images (GIF, PNG or JPEG

James Heinrich 292 Dec 17, 2022