Skip to content

sledgehammer/graphics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sledgehammer Graphics module

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');

About

Sledgehammer-module for Graphics processing

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages