2017 © Pedro Peláez
 

library thumbnail

PMVC Thumbnail Helper

image

pmvc-plugin/thumbnail

PMVC Thumbnail Helper

  • Sunday, May 27, 2018
  • by HillLiu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 254 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 6 % Grown

The README.md

Latest Stable Version Latest Unstable Version Build Status License Total Downloads, (*1)

thumbnail

, (*2)

How to use

  • https://github.com/pmvc-plugin/thumbnail/blob/master/demo/demo.php

Thumb type

  • type 0 (New size not equal defined size)
    • New image size auto fit by ratio
    • Canvans size will same with new image size.
  • type 1
    • New image size auto fit by ratio.
    • Canvans will fill with background color, and width and height will same with defined.
  • type 2
    • New image will force to max one between width and height.
    • Canvans size same with defined.
    • Auot change image location
  • type 3
    • Same with type2 but if image original size smaller than new size, will keep original one.
  • type 4
    • Same with type0 but if original size smaller than new size, will keep original one.
  • type 5
    • For security purpose, do 1:1 change.

Install with Composer

1. Download composer

  • mkdir test_folder
  • curl -sS https://getcomposer.org/installer | php

2. Install by composer.json or use command-line directly

2.1 Install by composer.json

  • vim composer.json
{
    "require": {
        "pmvc-plugin/thumbnail": "dev-master"
    }
}
  • php composer.phar install

2.2 Or use composer command-line

  • php composer.phar require pmvc-plugin/thumbnail

The Versions

27/05 2018

dev-master

9999999-dev https://github.com/pmvc/pmvc

PMVC Thumbnail Helper

  Sources   Download

MIT

The Requires

 

by Hill

plug-in thumb pmvc

27/05 2018

0.2.1

0.2.1.0 https://github.com/pmvc/pmvc

PMVC Thumbnail Helper

  Sources   Download

MIT

The Requires

 

by Hill

plug-in thumb pmvc

27/05 2018

0.2.0

0.2.0.0 https://github.com/pmvc/pmvc

PMVC Thumbnail Helper

  Sources   Download

MIT

The Requires

 

by Hill

plug-in thumb pmvc

12/08 2016

0.1.4

0.1.4.0 https://github.com/pmvc/pmvc

PMVC Thumbnail Helper

  Sources   Download

MIT

The Requires

 

by Hill

plug-in thumb pmvc

19/07 2016

0.1.3

0.1.3.0 https://github.com/pmvc/pmvc

PMVC Thumbnail Helper

  Sources   Download

MIT

The Requires

 

by Hill

plug-in thumb pmvc