sledgehammer / graphics
Sledgehammer Graphics module: Image and Video processing
Installs: 1 129
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 6
Forks: 1
Open Issues: 0
Requires
- ext-gd: *
- sledgehammer/core: >=18
README
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');