Thumbnail Images

Whenever an image is uploaded, corresponding thumbnail images are created according to the definition inside thumbs.xml file (inside the config folder which is in your fCMSBackend folder). Here is the example definition:

<?xml version="1.0" encoding="utf-8"?>
<thumbs version="1.0">
<thumb width="80" type="jpg" />
<thumb minSize="60" maxSize="120" bgColor="FFFFFF" type="png" />
</thumbs>

 

With the example above, 2 thumbnail images will be created for every uploaded image. There are two ways to define thumbnails:
  1. Using width and/or height parameter. If both parameters are defined and the original image ratio is different, cropping will occur.
  2. Using minSize and/or maxSize parameter. Use when you need to restrict the size without cropping the original image.