mod_img demo page

i.png (original image)

original image

resized image

i.png?width=100

i.png?width=100

i.png?height=x0.8

i.png?height=x0.8

i.png?width=x0.5&height=200

IMG:i.png?width=x0.5&height=200

i.png?size=x0.5

i.png?size=x0.5

i.png?width=x0.5&height=200&size=x0.5

IMG:i.png?width=x0.5&height=200&size=x0.5

i.png?size=x0.5&width=x0.5&height=200

IMG:i.png?size=x0.5&width=x0.5&height=200 (same as width=x0.5&height=200&size=x0.5)

file type conversion

i.png?type=image/bmp

creating bmp image is not supported (this Imlib2)

i.png?type=image/gif

creating gif image is not supported (this Imlib2)

i.png?type=image/jpeg

your browser cannot display jpeg

i.png?type=image/png

your browser cannot display png

i.png?type=image/x-portable-anymap

your browser cannot display pnm

i.png?type=image/tiff

your browser cannot display tiff

i.png?type=image/x-pixmap

creating xpm image is not supported (this Imlib2)

trimming

i.png?trim=60,80,120,160

i.png?trim=60,80,120,160

automatically file type conversion

TIFF image cannot display on Mozilla. But automatically file type conversion for your browser.

i.tiff (no args)

cannot automatically conversion

<img src="i.tiff">

i.tiff?type=image/tiff (force to TIFF image)

cannot display on your browser

<img src="i.tiff?type=image/tiff">

and ...

i.png?trim=60,80,120,160&type=image/jpeg&size=x0.5

IMG:i.png?trim=60,80,120,160&type=image/jpeg&size=x0.5

httpd.conf

...
LoadModule img_module         /usr/lib/apache/1.3/mod_img.so
...
<IfModule mod_img.c>
	<Files *.png>
		SetHandler	img-handler
	</Files>
	<Files *.tiff>
		SetHandler	img-handler
	</Files>
</IfModule>
...

links