All Projects → ricardofiorani → Php Legofy

ricardofiorani / Php Legofy

Transform your images as if they were made out of LEGO bricks.

Projects that are alternatives of or similar to Php Legofy

Magick
Magic, madness, heaven, sin
Stars: ✭ 362 (+124.84%)
Mutual labels:  image-processing, image-manipulation, imagemagick
Wasm Imagemagick
Webassembly compilation of https://github.com/ImageMagick/ImageMagick & samples
Stars: ✭ 442 (+174.53%)
Mutual labels:  image-processing, image-manipulation, imagemagick
Nuxt Image Loader Module
An image loader module for nuxt.js that allows you to configure image style derivatives.
Stars: ✭ 135 (-16.15%)
Mutual labels:  image-processing, image-manipulation, imagemagick
Imageviewer
HDR, PFM, DDS, KTX, EXR, PNG, JPG, BMP image viewer and manipulator
Stars: ✭ 71 (-55.9%)
Mutual labels:  image-processing, image-manipulation
Nimp
Nimp - Node-based image manipulation program.
Stars: ✭ 45 (-72.05%)
Mutual labels:  image-processing, image-manipulation
Imager
Image processing proxy
Stars: ✭ 56 (-65.22%)
Mutual labels:  image-processing, imagemagick
Cometa
Super fast, on-demand and on-the-fly, image processing.
Stars: ✭ 8 (-95.03%)
Mutual labels:  image-processing, image-manipulation
Neural Doodle
Turn your two-bit doodles into fine artworks with deep neural networks, generate seamless textures from photos, transfer style from one image to another, perform example-based upscaling, but wait... there's more! (An implementation of Semantic Style Transfer.)
Stars: ✭ 9,680 (+5912.42%)
Mutual labels:  image-processing, image-manipulation
Simpleimage
A PHP class that makes working with images as simple as possible.
Stars: ✭ 1,184 (+635.4%)
Mutual labels:  image-processing, gd
Deblurgan
Image Deblurring using Generative Adversarial Networks
Stars: ✭ 2,033 (+1162.73%)
Mutual labels:  image-processing, image-manipulation
Bitmap
C++ Bitmap Library
Stars: ✭ 125 (-22.36%)
Mutual labels:  image-processing, image-manipulation
Smartcrop.php
smartcrop implementation in PHP
Stars: ✭ 37 (-77.02%)
Mutual labels:  image-processing, gd
Imagene
A General Purpose Image Manipulation Tool
Stars: ✭ 36 (-77.64%)
Mutual labels:  image-processing, image-manipulation
Popbot
Color splash effects using Deep Learning
Stars: ✭ 61 (-62.11%)
Mutual labels:  image-processing, image-manipulation
Photon
⚡ Rust/WebAssembly image processing library
Stars: ✭ 963 (+498.14%)
Mutual labels:  image-processing, image-manipulation
Pgmagick
pgmagick is a yet another boost.python based wrapper for GraphicsMagick/ImageMagick.
Stars: ✭ 100 (-37.89%)
Mutual labels:  image-processing, imagemagick
Mgan
Masking GAN - Image attribute mask generation
Stars: ✭ 120 (-25.47%)
Mutual labels:  image-processing, image-manipulation
Spacechop
HTTP service for high-level image processing with first-class Docker support.
Stars: ✭ 133 (-17.39%)
Mutual labels:  image-processing, imagemagick
Sv Images
Image manipulation library with an HTTP based API.
Stars: ✭ 7 (-95.65%)
Mutual labels:  image-processing, imagemagick
Grafika
An image processing library for PHP
Stars: ✭ 838 (+420.5%)
Mutual labels:  image-processing, gd

PHP Legofy

Build Status Minimum PHP Version License Total Downloads Coding Standards Scrutinizer Code Quality Code Coverage

What is this ?

PHP Legofy is a PHP package that takes a static image and makes it so that it looks as if it was built out of LEGO.
It was inspired by the original Legofy made in Python https://github.com/JuanPotato/Legofy

Basically it transforms this: Image of a beer Into this: Image of a legofied beer

Requirements

  • PHP 7.1 (or above)
  • GD or ImageMagick

I tested it with GD only but I'm trusting intervention/image that this will work on ImageMagick as well.

Quickstart

Via composer:

$ composer require ricardofiorani/php-legofy

Via source:

$ git clone [email protected]:ricardofiorani/php-legofy.git
$ cd php-legofy
$ composer install

Usage:

<?php
require 'vendor/autoload.php';

// The multiplier for the amount of legos on your image, or "legolution" :)
$resolutionMultiplier = 1;

// When set to true it will only use lego colors that exists in real world.
$useLegoPalette = false;

$legofy = new \RicardoFiorani\Legofy\Legofy();

// $source can be any acceptable parameter for intervention/image
// Please see http://image.intervention.io/api/make
$source = 'my/imagem/path/image.jpg';

/**
 *@var Intervention\Image\Image 
 */
$output = $legofy->convertToLego($source, $resolutionMultiplier, $useLegoPalette);

// Please see http://image.intervention.io/use/basics and http://image.intervention.io/use/http
echo $output->response();

For more examples of usage please see the usage examples on documentation

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].