NetPBM
Serge Ratke
- php
Hi allerseits,
ich versuche die netpbm grafik bibliotheken zu benutzen. Das ganze soll aus PHP heraus geschehen. Ein Beispiel:
$newFile = "c:/neues_bild.gif";
$fileName = "c:/bild.gif";
$pathToBin = "c:/tools/netpbm/";
// Funktionen
$gifToPnm = $pathToBin . "giftopnm";
$pnmRotate = $pathToBin . "pnmrotate";
$ppmToGif = $pathToBin . "ppmtogif";
// Das funktioniert, allerdings ist die Datei
// 0Byte groß
exec("$gifToPnm > c:/output.pnm";
// Das funktioniert nicht, ich schätze mal weil die
// Datei 0Byte groß ist.
exec("$gifToPnm $fileName | $pnmRotate 45 | $ppmToGif $newFile");
Vielen Dank im Voraus.