Thule - 0.9.6
  • Welcome
  • Introduction
  • - MVC(Model-View-Controller)
    - Architecture of Framework
    - Flow Chart of Application
    - Services In One Server
    - Developing Guide
    - Features
  • Installation
  • Getting Started
  • - Direct Access HTTP
    - Router Access HTTP
    - Router Direct Access HTTP
    - Reserved Function
    - Convention
    - Bootstrap
    - Pack Javascript , CSS
  • Basic Modules
  • - Model
    - View
    - Controller
  • Libraries
  • - Router
    - Config
    - Response
    - Request
    - Database
    - Query
    - Cache
    - Debug
    - Log
    - Unit Test
    - Registry
    - Profile
  • Helper
  • - Auth
    - Calendar
    - Date
    - Error page
    - Email
    - Form
    - GeoIP
    - Google
    - Html Element
    - Html
    - Http
    - I18n
    - Image
    - Json
    - Jquery
    - Login
    - Layout
    - Locale
    - PHP to Javascript
    - Paging
    - Payflow
    - Soap
    - Text
    - Table
    - Uri
    - Upload
    - Validation
  • Plugins
  • - Smarty Template Engine
  • History
  • Home > Image

    Image helper is very useful in need of thumbnail and signup-image-text for attack from anyone because it can create image dynamically.
    However If you want to use this class, you need the convert(ImageMagick) and gd library

    How to use

    $this->loadHelper('image');

    Create Thumbnail

    $this->Image->extentImage($width, $height, $dir, $file, $targetFile = null);

    Crop Image

    $this->Image->cropImage($dir, $file, $targetFile = null);

    Trim Image

    $this->Image->trimImage($dir, $file, $targetFile = null);

    Create Image Text

    $text="Thule Framework";
    $this->Image->createImageText($text,$width,$height);