2017 © Pedro Peláez
 

library create-thumbnail

A simple class to create thumbnails from larger images

image

phlylabs/create-thumbnail

A simple class to create thumbnails from larger images

  • Monday, April 11, 2016
  • by mso
  • Repository
  • 1 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

CreateThumbnail

This is just a simple class to create a thumbnail from a given source image., (*1)

You'll need one of these packages installed and available:, (*2)

  • the "convert" command line tool from ImageMagick
  • the ImageMagick PHP extension
  • the GD libarary PHP extension

Depending on your choices of these tools the available source and target image formats vary. JPEG always is a safe bet, but in properly set up environments most of the usual formats like GIF or PNG will be avilable as well., (*3)

Purpose of this class is only thumbnail generation, so there's not many options available., (*4)

Usage example:, (*5)

use Algo26\CreateThumbnail\CreateThumbnail;

$thumbnail = new CreateThumbnail();

$thumbnail->setTargetWidth($width)
        ->setTargetHeight($height)
        ->setTargetType('JPEG')
        ->setJpegCompressionQuality(90)
        ->create($inputFile, $outputFile);

Need anything? Just drop me a line, (*6)

  • Matthias

The Versions

11/04 2016

dev-master

9999999-dev http://phlylabs.com/

A simple class to create thumbnails from larger images

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Matthias Sommerfeld

php thumbnail

11/04 2016

0.0.1

0.0.1.0 http://phlylabs.com/

A simple class to create thumbnails from larger images

  Sources   Download

MIT

The Requires

  • ext-pcre *
  • php >=5.6.0

 

by Matthias Sommerfeld

php thumbnail