Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 864 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 864 Bytes

OpenConext-logogenerator

Requirements

  • PHP 5.3+ with the GD Library
  • Composer
  • Command line access

Installation

Usage

The logogenerator.php is an executable command line script which read the config.yml to generate thumbnail images.

Example config.yml (as distributed by the repo);

# Basic YAML Configuration for logo image generator
---
# Configuration of the source images path
source:
    image_directory: '/tmp/images'

# Configuration for the destination images
destination:
  # Output format extension
  extension: 'jpg'
  # List of formats to use,
  formats:
    - maxwidth: 200
      maxheight: 80

    - maxwidth: 160
      maxheight: 60

  image_directory: '/tmp/resized'