Subversion-Projekte lars-tiefland.content-management

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
	$path="/web/apache/hausgeraete24.de/images/Bild_1";
3
 
4
	$handle=opendir($path);
5
	while ($image = readdir ($handle))
6
	{
7
		if
8
		(
9
			$image != "."
10
			&&
11
			$image != ".."
12
			&&
13
			$image != "kl"
14
			&&
15
			$image != "mini"
16
			&&
17
			$image != "180x180"
18
			&&
19
			$image != "120x120"
20
			&&
21
			$image != "80x120"
22
			&&
23
			$image != "30x30"
24
		)
25
		{
26
			$image = str_replace(" ", "\ ", $image);
27
			$image = str_replace("(", "\(", $image);
28
			$image = str_replace(")", "\)", $image);
29
 
30
			exec ("convert -scale 180x180 $path/$image $path/kl/$image");
31
			exec ("convert -scale 90x90 $path/$image $path/mini/$image");
32
			//exec ("convert -scale 80x120 $path/$image $path/80x120/$image");
33
			//exec ("convert -scale 30x30 $path/$image $path/30x30/$image");
34
			echo $image."\n";
35
		}
36
	}
37
	closedir($handle);
38
?>