Avatar billede mixhael Nybegynder
08. februar 2006 - 22:22

Problem med imagemagick og PHP

Jeg forsøger at køre følgende komando i imagemagick igennem php.

<?
$cmd = 'convert -annotate 45x45+75+75 "Hello World" /lokalfilsti/pdftest/input.pdf /lokalfilsti/pdftest/output.pdf';

exec($cmd, $output);

echo '<pre>';
print_r($output);
echo '</pre>';
?>

Jeg får følgende udskrifts med en fejlbesked:

Array
(
[0] => xref error!
[1] => Error: /rangecheck in resolveR
[2] => Operand stack:
[3] => --dict:9/9(L)-- --dict:9/9(L)-- false --dict:9/9(L)-- --dict:5/5(L)-- false 25375 5 4«ÉªÆd_
[4] => Execution stack:
[5] => %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop --nostringval-- 3 1 18 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- %loop_continue --nostringval-- --nostringval-- %loop_continue --nostringval-- --nostringval-- --dict:4/4(L)-- --nostringval-- 4 %dict_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval--
[6] => Dictionary stack:
[7] => --dict:1069/1123(ro)(G)-- --dict:0/20(G)-- --dict:79/200(L)-- --dict:79/200(L)-- --dict:97/127(ro)(G)-- --dict:229/230(ro)(G)-- --dict:19/24(L)-- --dict:4/6(L)-- --dict:20/20(L)--
[8] => Current allocation mode is local
[9] => Last OS error: 2
)

Nogle der har lidt mere styr på imagemagick end mig??

På forhånd tak.

Mvh Michael
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester