nginx - php - Howto Install gd lib

  • I seem to remember, that i asked this question before, but couldn't find it.


    I need for a educational project in php the gd lib. tried to install it on omv by "apt-get install php5-gd", but this seems to be incomplete


    a


    <?php
    header ("Content-type: image/png");
    $im = @ImageCreate (50, 100)
    or die ("Kann keinen neuen GD-Bild-Stream erzeugen");
    ImagePNG ($im);
    ?>


    leads to errors that png cannot be displayed



    Where is my mistake, is it a Problem in the setup of nginx, php ...?

    ____________________
    Grüße aus Berlin


    Q29000-ITX
    omv 4.1.8.2 | 64 bit | backport kernel | omvextras

    • Offizieller Beitrag

    There is problems with your code. Look at the example code here.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Vielen Dank , weiss zwar nicht wo der Fehler lag, aber nachdem ich de Beispiele neu durch programmiert habe lief es


    Micha

    ____________________
    Grüße aus Berlin


    Q29000-ITX
    omv 4.1.8.2 | 64 bit | backport kernel | omvextras

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!