Exemplo n.º 1
0
<?php

require "miniImage/miniImage.php";
$MiniImage = new MiniImage\MiniImage(["path" => "images"]);
$url = "https://scontent-mia1-1.xx.fbcdn.net/hphotos-xtp1/v/t1.0-9/11391150_10206547629790255_4725550947577463650_n.jpg?oh=6cbfa7c10771fc868086c41428101ec3&oe=56DB638B";
/*
 */
$info = $MiniImage->layer(["size" => [500, 500], "out" => "webp", "quality" => 100, "save" => ["dir" => "images", "name" => "unique"]], [["url" => $url, "size" => [500, 500, "cover"], "filter" => [IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR]], ["url" => $url, "size" => [400, 400, "cover"], "position" => [50, 50]], ["url" => "http://imagenes.es.sftcdn.net/es/scrn/69690000/69690936/game-assistant-07-535x535.png", "size" => [80], "position" => [360, 360]]]);
var_export($info);
Exemplo n.º 2
0
<?php

require "miniImage/miniImage.php";
// header("Content-type: image/png");
$miniImage = new MiniImage\MiniImage(["path" => "images"]);
$append = "data:image/png;base64,";
$image = $append . base64_encode(file_get_contents("images/mario.png"));
$info = $miniImage->create(["base64" => $image, "size" => [200], "save" => ["dir" => "images", "name" => "unique"]]);
var_export($info);
Exemplo n.º 3
0
<?php

require "miniImage/miniImage.php";
$MiniImage = new MiniImage\MiniImage(["path" => "images"]);
$linzo = ["size" => [500, 500], "out" => "png", "quality" => 100];
$capas = [["url" => "http://letiarts.com/letiarts2014/wp-content/uploads/2014/04/icon_game.png", "size" => [200, 200, "cover"], "position" => [50, 25]], ["url" => "http://letiarts.com/letiarts2014/wp-content/uploads/2014/04/icon_game.png", "size" => [100, 100, "cover"], "position" => [250, 25]], ["url" => "http://letiarts.com/letiarts2014/wp-content/uploads/2014/04/icon_game.png", "size" => [100, 100, "cover"], "position" => [150, 25]]];
$MiniImage->layer($linzo, $capas);
Exemplo n.º 4
0
<?php

require "miniImage/miniImage.php";
$MiniImage = new MiniImage\MiniImage(["path" => "images"]);
$perfil_facebook = "https://scontent-mia1-1.xx.fbcdn.net/hphotos-xtp1/v/t1.0-9/11391150_10206547629790255_4725550947577463650_n.jpg?oh=6cbfa7c10771fc868086c41428101ec3&oe=56DB638B";
$MiniImage->create(["url" => $perfil_facebook, "size" => [200, 200, "cover"], "out" => "png"]);
Exemplo n.º 5
0
<?php

require "miniImage/miniImage.php";
$MiniImage = new MiniImage\MiniImage(["path" => "images"]);
$lienzo = ["size" => [300, 250], "out" => "jpeg", "quality" => 100];
$capas = [["name" => "fondo.jpeg", "size" => [500, 250, "cover"], "position" => [0, 0], "filter" => [IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, IMG_FILTER_GAUSSIAN_BLUR, [IMG_FILTER_PIXELATE, 15]]], ["name" => "fondo.jpeg", "size" => [200, 200, "cover"], "position" => [50, 25]]];
$color_de_fondo = [255, 0, 0];
$MiniImage->layer($lienzo, $capas, $color_de_fondo);