2017 © Pedro PelĂĄez
 

library phpicture

Generate friendly thumbs from url with parameters

image

sergiocardoso/phpicture

Generate friendly thumbs from url with parameters

  • Monday, July 18, 2016
  • by sergiocardoso
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

, (*1)

PHPicture

This class generate thumb from images with frienldy directives and settings from url on HREF attribute from IMG tag on HTML., (*2)

Required
  • PHP > 5.4;
  • PHP GD;

Getting Started

Configuration:

It's necessary setup two folder on PHPicture.ini file: * [images_folder] - folder from all your images; * [cache_folder] - folder from a cache generation;, (*3)

How its works:

Call all your images from HTML5 to PHPicture project. See the example below: If you install PHPicture project on the folder called myimg, and all your images are on the public/img folder, so change your HTML IMG SRC attribute to:, (*4)

http://[absolute or relative path]/myimg/photo.png

Load the image from public/img folder., (*5)

http://[absolute or relative path]/myimg/photo-w:100-h:100.png

Resize this image to 100x100., (*6)

http://[absolute or relative path]/myimg/photo-w:140-h:120-b:e1e1e1.png

Resize this image to 140x120 and the fill the background with the hexdecimal color (b = background color parameter);, (*7)

http://[absolute or relative path]/myimg/photo-f:jpg-q:9.png

Load image png in jpg format with 9 of compression. (q = quality parameter), (*8)

Version

1.0.0, (*9)

Author

Sérgio Cardoso contato@sergiocardoso.org http://www.sergiocardoso.org, (*10)

The Versions

18/07 2016

dev-master

9999999-dev http://sergiocardoso.org/phpicture

Generate friendly thumbs from url with parameters

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

resize gd images thumb effects

18/07 2016

1.0.0

1.0.0.0 http://sergiocardoso.org/phpicture

Generate friendly thumbs from url with parameters

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

resize gd images thumb effects