-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod_image_resize.conf
38 lines (28 loc) · 1.08 KB
/
mod_image_resize.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Configuration for mod_image_resize Apache module
# Load module
LoadModule image_resize_module /usr/lib/apache2/modules/mod_image_resize.so
<IfModule mod_image_resize.c>
# Handler configuration
<Location /resized>
SetHandler image-resize
# Source images directory
ImageResizeSourceDir /var/www/images
# Cache directory for resized images
ImageResizeCacheDir /var/cache/apache2/image_resize
# Compression quality (0-100)
ImageResizeQuality 70
# Cache lifetime in seconds (1 day = 86400)
ImageResizeCacheMaxAge 86400
# Enable mutex for cache operations (On/Off)
ImageResizeMutex On
# Check if source image is newer than cached image (On/Off)
ImageResizeCheckMTime Off
</Location>
# MIME type support for different image formats
AddType image/jpeg .jpg .jpeg .jpe
AddType image/png .png
AddType image/gif .gif
AddType image/webp .webp
# Level required to have all logging information
LogLevel info
</IfModule>