Yacs handbook Content management

Understanding automatic resizing of images

YACS is able to resize photos and uploaded images. Learn how to configure and use this powerful feature.

When an image is added to some page, YACS checks its size against thresholds set in a configuration panel.

If the width or the height, or both, exceeds standard values, then YACS resizes the images using the GD library.

Actually, the first check performed is aiming to evaluate if the image is laid out vertically or horizontally.

[title]The case of horizontal images[/title] Then, if the image is horizontal, YACS will compare its width against the standard width defined in the configuration panel. By default, this is 640 pixels.

If the image has to be resized, its width will be set to the standard width, and its height will be computed to preserve the overall appearance of the image.



[title]The case of vertical images[/title] If the image is laid vertically, YACS will compare its height against the standard height defined in the configuration panel. By default, this is also 640 pixels.

If the image has to be resized, its height will be set to the standard height, and its width will be computed to preserve the overall appearance of the image.



[title]How to change standard sizes?[/title]

If you want to depart from standard values, visit the Control Panel and, from there, select to change rendering parameters.

Fields for standard image size are towards the bottom of the form.

A common mistake is to put different values for target width and height, such as 640 x 480. Most of the time you should put exactly the same values for width and height, such as 640 x 640, or 800 x 800. Depart from this scheme only to make images fit into specific skins.