Scale image
Original image
[[Image:minette.jpg]]
Width 160, 100, 50
[[Image:minette.jpg|160]]
[[Image:minette.jpg|100]]
[[Image:minette.jpg|50]]
Height 160, 100, 50
[[Image:minette.jpg|0|160]]
[[Image:minette.jpg|0|100]]
[[Image:minette.jpg|0|50]]
Width 160 height 160
Width 160 height 80
Width 80 height 160
[[Image:minette.jpg|160|160]]
[[Image:minette.jpg|160|80]]
[[Image:minette.jpg|80|160]]
Width 160 height 160 left, center, right: second letter l c r
[[Image:minette.jpg|160|160|tl]]
[[Image:minette.jpg|160|160|tc]]
[[Image:minette.jpg|160|160|tr]]
Width 100 height 50 top center bottom: first letter t c b
[[Image:minette.jpg|100|50|tc]]
[[Image:minette.jpg|100|50|cc]]
[[Image:minette.jpg|100|50|bc]]
Numeric values for crop are also possible.
11 is top left, 19 is top right, 55 is center center, 99 is bottom right.
The goal is to fine tune thumbnail images, when aspect ratio do not match.
You can also use the auto option, to let scale the wiki based on image content.
[[Image:minette.jpg|160|80|auto]]
[[Image:minette.jpg|160|120|auto]]
[[Image:minette.jpg|160|160|auto]]
The wiki chooses region with more detail. It will also crop automatically black borders. To see which regions are of interest, use analyze. It shows a 144x144 image (scale is ignored) and the detail regions in red.
[[Image:minette.jpg|100|100|analyze]]
The image versions are saved in cache, so the calculations happens only once.
The scaler never upscales more than 150%.
If you do not see the rescaled images, check if you have set the $swImageScaler=1 in the /site/configuration.php and a .htaccess file in /site/cache/ with the following content:
Allow from all
<Files ~ ".txt$">
Order allow,deny
Allow from all
</Files>
<Files ~ ".php$">
Order Deny,Allow
Deny from all
</Files>