Logotipo Liquen Image Manipulation

Liquen Image Resize Class

https://github.com/baamenabar/Liquen-php

Cropping

  • include "classes/LiquenImg.php";
    $lii=new LiquenImg(); 
    						
  • imgs/w300_uuu-la cuchilla.jpg.jpg
    	'url'=>'la cuchilla.jpg',
    	'oc'=>'1',
    	'width'=>'300'
    	));
    						
  • imgs/w250_uuu-la cuchilla.jpg.jpg
    $fotoDos=$lii->genImage(array(
    	'url'=>'upload/la cuchilla.jpg',
    	'oc'=>'1',
    	'width'=>'250'
    	));
    						
  • imgs/cw250_ch120_uuu-la cuchilla.jpg.jpg
    $fotoTres=$lii->genImage(array(
    	'url'=>'upload/la cuchilla.jpg',
    	'oc'=>'1',
    	'cw'=>250,
    	'ch'=>120
    	));
    						
  • imgs/cx400_cy100_cw250_ch120_uuu-la cuchilla.jpg.jpg
    $fotoCuatro=$lii->genImage(array(
    	'url'=>'upload/la cuchilla.jpg',
    	'oc'=>'1',
    	'cw'=>250,
    	'ch'=>120,
    	'cx'=>400,
    	'cy'=>100
    	));
    						
  • imgs/w230_cx400_cy100_cw350_ch220_uuu-la cuchilla.jpg.jpg
    $fotoCinco=$lii->genImage(array(
    	'url'=>'upload/la cuchilla.jpg',
    	'oc'=>'1',
    	'cw'=>350,
    	'ch'=>220,
    	'cx'=>400,
    	'cy'=>100,
    	'width'=>230
    	));
    						
  • imgs/h230_cx460_cy100_cw150_ch250_uuu-la cuchilla.jpg.jpg
    $fotoSeis=$lii->genImage(array(
    	'url'=>'upload/la cuchilla.jpg',
    	'oc'=>'1',
    	'cw'=>150,
    	'ch'=>250,
    	'cx'=>460,
    	'cy'=>100,
    	'height'=>230
    	));
    
    
    						
  • imgs/w167_h80_cx400_cy100_cw250_ch120_uuu-la cuchilla.jpg.jpg
    $fotoSiete=$lii->genImage(array(
    	'url'=>'upload/la cuchilla.jpg',
    	'oc'=>'1',
    	'cw'=>250,
    	'ch'=>120,
    	'cx'=>400,
    	'cy'=>100,
    	'width'=>167,// 2/3 of the original size
    	'height'=>80 // if it is proportionate no need for this value
    	));
    						
  • imgs/w167_h180_cx400_cy100_cw250_ch120_uuu-la cuchilla.jpg.jpg
    $fotoOcho=$lii->genImage(array(
    	'url'=>'upload/la cuchilla.jpg',
    	'oc'=>'1',
    	'cw'=>250,
    	'ch'=>120,
    	'cx'=>400,
    	'cy'=>100,
    	'width'=>167,// 2/3 of the original size
    	'height'=>180 // not in the same aspect ratio, will make extra white space
    	));
    						
  • imgs/w167_h40_cx400_cy100_cw250_ch120_uuu-la cuchilla.jpg.jpg
    $fotoNueve=$lii->genImage(array(
    	'url'=>'upload/la cuchilla.jpg',
    	'oc'=>'1',
    	'cw'=>250,
    	'ch'=>120,
    	'cx'=>400,
    	'cy'=>100,
    	'width'=>167,// 2/3 of the original size
    	'height'=>40 // not in the same aspect ratio, will make extra white space
    	));
    						
  • imgs/w167_h180_b0x553333_cx400_cy100_cw250_ch120_uuu-la cuchilla.jpg.jpg
    $fotoDiez=$lii->genImage(array(
    	'url'=>'upload/la cuchilla.jpg',
    	'oc'=>'1',
    	'cw'=>250,
    	'ch'=>120,
    	'cx'=>400,
    	'cy'=>100,
    	'width'=>167,// 2/3 of the original size
    	'height'=>180, // not in the same aspect ratio, will make extra white space
    	'b'=>'0x553333'
    	));
    						
  • Return the actual image with getImage().
  • Or load it here

    This file loads liquen and returns an image.