Giter Club home page Giter Club logo

go2images's Introduction

In English

Description

The Go2Images was developed using the programming language PHP and the MVC design pattern. He works with the GD library to perform operations to resize and crop.

You can set the size the images should be resized, registering the width and height, the system finds all kinds of sizes and works with affiliates such information to perform the resize and crop the images.

Installation

In the go2images/db/migrate there are 4 files SQL:

  1. 001_create_db.sql
  2. 002_create_table_image_types.sql
  3. 003_create_table_images.sql
  4. 004_create_table_image_sizes.sql

Perform the above files in your MySQL database.

Configuration

In the file go2images/db/DatabaseConnection.php to configure the data connection to your database:


...
   // Attributes
  private static $host = '';
  private static $user = '';
  private static $password = '';
  private static $db = '';
...

All images are created in the directory public/images/system, so set the permissions:


chmod -R 777 public/images/system

More informations

Access: http://blog.patrickespake.com/2009/05/19/lab-go2images-resize-e-crop-de-imagens-no-formato-gif-png-ou-jpg/
Example: http://lab.patrickespake.com/go2images

Em Português

Descrição

O Go2Images foi desenvolvido usando a linguagem de programação PHP e o padrão de projeto MVC. Ele usa a biblioteca GD para realizar as operações de resize e crop.

Você pode definir os tamanhos que as imagens devem ser redimensionadas, cadastrando a largura e altura, os sistema verifica todos os tipos de tamanhos cadastrados e usa essas informações para efetuar o resize e crop da imagens.

Instalação

No diretório go2images/db/migrate existem 4 arquivos SQL:

  1. 001_create_db.sql
  2. 002_create_table_image_types.sql
  3. 003_create_table_images.sql
  4. 004_create_table_image_sizes.sql

Execute os arquivos acima no seu banco de dados MySQL.

Configuração

No arquivo go2images/db/DatabaseConnection.php configure os dados de conexão com o seu banco de dados:


...
   // Atributos
  private static $host = '';
  private static $user = '';
  private static $password = '';
  private static $db = '';
...

Todas as imagens são criadas no diretório public/images/system, desta forma configure as permissões:


chmod -R 777 public/images/system

Mais informações

Acesse: http://blog.patrickespake.com/2009/05/19/lab-go2images-resize-e-crop-de-imagens-no-formato-gif-png-ou-jpg/
Exemplo: http://lab.patrickespake.com/go2images

go2images's People

Contributors

patrickespake avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.