Skip to content

barnebys/bimp-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Build Status Coverage Status

Barnebys Image Processor

This is an helper for PHP to build image URL for Barnebys Image Processor with ease.

Resize image

// Create the URL Builder with your bimp domain & secret
$urlBuilder = new UrlBuilder('bimp.yourdomain.com', 'test');
$urlBuilder->setWidth(200);

// Get the signed image URL
$url = $urlBuilder->createURL();

Crop image

$urlBuilder = new UrlBuilder('bimp.yourdomain.com', 'test');
$urlBuilder->setSize(200,200);        

Crop image and set gravity

$urlBuilder = new UrlBuilder('bimp.yourdomain.com', 'test');
$urlBuilder
    ->setSize(200,200)
    ->setCrop('north');        

See Barnebys Image Processor for documentation for available crop gravities & strategies.

About

PHP Client for Barnebys Image Processor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages