Skip to content

The Gregwar Image plugin provide a simple object-oriented images handling and caching API with Gregwar Image Class.

License

Notifications You must be signed in to change notification settings

fansoro/fansoro-plugin-gregwar-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gregwar Image

The Gregwar Image plugin provide a simple object-oriented images handling and caching API with Gregwar Image Class.

Installation

See this instruction

Usage in page content

!(Image)[{Image open="themes/default/assets/img/fansoro-logo.png" width=100 height=100}]

Parameters

name description
open Set image file to open
width Set image width
height Set image height
resize_method Set image resize method, accepted values: scale force crop zoom
contrast Set image contrast effect (from -100 to +100)
brighness Set image brighness effect (from -255 to +255)
smooth Set image smooth
negate Set image negate filter, accepted values: true
sepia Set image sepia filter, accepted values: true
sharp Set image sharp filter, accepted values: true
edge Set image edge filter, accepted values: true
emboss Set image emboss filter, accepted values: true
grayscale Set image grayscale filter, accepted values: true
colorize Set image colorize, accepted values: true
red Set red color
green Set green color
blue Set blue color
x Set x
y Set y
background Set image background color
angle Set image angle
font Set font name
text Set text
size Set font size
position Set text position

Usage in template

In the templates you have a full power of Gregwar Image Class.

<img src="{Image::open('themes/default/assets/img/fansoro-logo.png')->resize(100, 100)}" />

Options

name value description
enabled true or false to disable the plugin

License

See LICENSE

About

The Gregwar Image plugin provide a simple object-oriented images handling and caching API with Gregwar Image Class.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages