2017 © Pedro Peláez
 

library jv-php-thumb

Use this module to generate thumbnail to apply the images on your website.

image

jaimevalasek/jv-php-thumb

Use this module to generate thumbnail to apply the images on your website.

  • Friday, September 27, 2013
  • by jaimevalasek
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

JVPhpThumb

Create By: Jaime Marcelo Valasek, (*1)

Use this module to generate thumbnail to apply the images on your website., (*2)

Futures video lessons poderam be developed and posted on the website or in http://www.zf2.com.br/tutoriais Youtube channel http://www.youtube.com/zf2tutoriais, (*3)

Installation

Download this module into your vendor folder., (*4)

After done the above steps, open the file config / application.config.php. And add the module with the name JVPhpThumb., (*5)

With composer

  1. Add this project and JVConfig in your composer.json:
"require": {
    "jaimevalasek/jv-php-thumb": "dev-master"
}
  1. Now tell composer to download JVPhpThumb by running the command:

php $ php composer.phar update, (*6)

Enabling it in your application.config.php.

<?php
return array(
    'modules' => array(
        // ...
        'JVConfig',
        'JVPhpThumb',
    ),
    // ...
);

After the installation includes a configuration module JVConfig - module.config.php.

  • Create a folder in the root of the site Imagecache
  • Search the Internet or develop an image to display as image not found in case of missing image folder root / img / image_not_found.jpg
  • Configure the folders of images to use when generating the thumbs, these settings are in the file module.config.php
return array(
    // ...
    'php_thumb' => array (
        'thumbnail_folder' => array(
            'produto-pagina-inicial' => '/conteudos/imagens/'
        ),
        'cache' => true,
    ),
    // ...
);

Using the thumb php

// View Code < img alt="imagem" src="/thumbnail/nameModuleConfigFolder/250/150/8:5/imagem.jpg" >, (*7)

exemplo da url htttp://www.seusite.com.br/thumbnail/produto-pagina-inicial/250/150/8:5/imagem.jpg htttp://www.seusite.com.br/thumbnail/name_thumbnail_folder/width/height/ratio/image, (*8)

The Versions

27/09 2013

dev-master

9999999-dev https://github.com/jaimevalasek/JVPhpThumb

Use this module to generate thumbnail to apply the images on your website.

  Sources   Download

BSD-3-Clause

The Requires

 

zf2 jaimevalasek crear thumbnail dynamically