Developers
Media
The SeeCMS media library
Media
When media is uploaded each file will be processed and produce any image sizes you have pre-defined automatically.
To create different image sizes you need to add an entry into the imagesize table in the database
name - this will be the name of the image size as it appears in the editor
width - the width of the image in pixels
height - the height of the image in pixels
mode - set to either crop or resize - crop will resize then crop the image to the exact dimensions, resize will resize the image to the closest maximum but maintain the image proportions.
The path to the original image will be:
/images/uploads/img-original-%ID%.%TYPE%
%ID% is the id of the image, you can find the image id by clicking on edit in the Media section of the browser and the ID will be at the end of the URL and %TYPE% is the file extension of the image.
e.g. /images/uploads/img-original-1.jpg
any processed images will be in the following format where %SIZE% is the id of the image size set in the imagesize table in the database
/images/uploads/img-%SIZE%-%ID%.%TYPE
e.g
/images/uploads/img-2-1.jpg