sledgehammer/graphics

Sledgehammer Graphics module: Image and Video processing

18.04.0 2018-04-27 13:02 UTC

This package is auto-updated.

Last update: 2024-11-17 22:26:08 UTC


README

Build Status

Features

  • Compose images via layers.
  • Use CSS notation for colors "white", "#ff8800" or "rgba(255,130, 0, 0.5)"
  • Use CSS notation for text "bold 18px Arial, sans-serif"
  • Autodetect filetype and support for bmp.

Datastructure

Modelled after Adobe Photoshop's layers & folders.

  • Composition
    • TextGraphics
    • Composition
      • Canvas
      • Image
    • Image

Creating an image object

Example usage

     $image = new Image('/path/to/my-image.jpg');
     $resized = $image->resized(120, 100);
     $resized->saveAs('/path/to/my-image-as-120x100.png');