Cyclone3 Skin

Set up image format processing

From Cyclone3 Wiki

This page explains available image format processing functions you can use to define the processing of uploaded images.

To clearly understand how to use these functions see: Set up image formats

Contents

thumbnail()

removes all unnecessary datas from image (exif, thumbnail, meta, color sets) to create thumbnail with optimal size.

dimensions(width ratio, height ratio)

crop image to respect new dimensions. dimensions cropping is using face detection when available.

  • 19,6
  • 4,3

copyright()

adds image from $tom::P/!media/a501/copyright.png into leftdown corner of current image as copyright watermark. copyright image is autodownscaled.

face_debug()

draw face detection rectangles into image.

trim()

autocrop image to remove border with background color

geometry(x,y)

scale(width,height)

upscales or downscales image.

downscale(width,height)

resize image to respect maximal width and height entered as params. image is not resized when width and height are lower as params.

resize(width,height)

rotate(angle)

set_env("","")

  • "ext","jpg" - change extension to jpg
  • "quality","90" - set quality to 90%