Page 1 sur 1

Fonction inconnue par mon php4

Posté : 26 févr. 2005, 20:56
par DT
Bonjour !
J'ai fait un serveur sous linux (debian) avec apache2 php4 mysql4.1 et tout ce qui va avec :)

et dans mon site j'utilise une fonction : imagecreatefromjpeg()

mais elle n'est pas active :cry: :
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/taverne/public_html/galerie/thumbgen.php on line 3

je ne sais pas quoi faire :cry: quelqu'un a une idée ? merci !

Posté : 26 févr. 2005, 21:00
par rami
Il faut installer la bibliothèque GD sur ton serveur ;)

Posté : 26 févr. 2005, 21:40
par Invité
Il faut installer la bibliothèque GD sur ton serveur ;)
merci pour ta réponse ! j'ai installé la libgd-dev mais ca ne fonctionne toujours pas :cry: , et savoir quel lib choisir dans tout ca .... :
debian:~# apt-cache search libgd
gda2-freetds - FreeTDS backend plugin for GNOME Data Access library for GNOME2
gda2-mysql - MySQL backend plugin for GNOME Data Access library for GNOME2
gda2-odbc - ODBC backend plugin for GNOME Data Access library for GNOME2
gda2-postgres - PostgreSQL backend plugin for GNOME Data Access library for GNOME2
gda2-sqlite - SQLite backend plugin for GNOME Data Access library for GNOME2
gdk-imlib1 - imaging library for use with gtk (using libpng2)
gnustep-gd - Objective-C Interface to the GD Graphics Library
libgd-dev - GD Graphics Library (transitional package)
libgd-gd2-noxpm-perl - Perl module wrapper for libgd - gd2 variant without XPM support
libgd-gd2-perl - Perl module wrapper for libgd - gd2 variant
libgd-gif-tools - GD command line tools with gif support
libgd-gif1 - GD Graphics Library with gif support
libgd-gif1-dev - GD Graphics Library with gif support (development version)
libgd-graph-perl - Graph Plotting Module for Perl 5
libgd-graph3d-perl - Create 3D Graphs with GD and GD::Graph
libgd-noxpm-dev - GD Graphics Library (old version, without XPM support)
libgd-ruby1.6 - Extension library to use GD graphics library from Ruby 1.6
libgd-ruby1.8 - Extension library to use GD graphics library from Ruby 1.8
libgd-text-perl - Text utilities for use with GD
libgd-tools - GD command line tools and example code
libgd-xpm-dev - GD Graphics Library (old version)
libgd1 - GD Graphics Library (transitional package)
libgd1-noxpm - GD Graphics Library (old version, without XPM support)
libgd1-xpm - GD Graphics Library (old version)
libgd2 - GD Graphics Library version 2
libgd2-dev - GD Graphics Library version 2 (development version)
libgd2-noxpm - GD Graphics Library version 2 (without XPM support)
libgd2-noxpm-dev - GD Graphics Library version 2 (development version)
libgd2-xpm - GD Graphics Library version 2
libgd2-xpm-dev - GD Graphics Library version 2 (development version)
libgda-common - GNOME Data Access library -- common files
libgda-dev - GNOME Data Access library -- development files
libgda-doc - GNOME Data Access library -- documentation files
libgda0 - GNOME Data Access library -- runtime libraries
libgda2-1 - GNOME Data Access library for GNOME2
libgda2-common - Common files for GNOME Data Access library for GNOME2
libgda2-dbg - GDA2 library and debugging symbols
libgda2-dev - Development files for GNOME Data Access library for GNOME2
libgda2-doc - Documentation files for GNOME Data Access library for GNOME2
libgda2-ruby - GDA bindings for the Ruby language
libgdal-doc - Documentation for the Geospatial Data Abstraction Library
libgdal1 - Geospatial Data Abstraction Library
libgdal1-dev - Geospatial Data Abstraction Library - Development files
libgdamm1.3-1 - C++ wrappers for libgda2 (shared library)
libgdamm1.3-dev - C++ wrappers for libgda2 (development files)
libgdbm-dev - GNU dbm database routines (development files)
libgdbm-ruby - GDBM interface for Ruby
libgdbm-ruby1.6 - GDBM interface for Ruby 1.6.x
libgdbm-ruby1.8 - GDBM interface for Ruby 1.8
libgdbm3 - GNU dbm database routines (runtime version)
libgdbmg1 - GNU dbm database routines (runtime version)
libgdchart-gd1-noxpm - Generate graphs using the GD library
libgdchart-gd1-noxpm-dev - Generate graphs using the GD library (development version)
libgdchart-gd1-xpm - Generate graphs using the GD library
libgdchart-gd1-xpm-dev - Generate graphs using the GD library (development version)
libgdchart-gd2-noxpm - Generate graphs using the GD library
libgdchart-gd2-noxpm-dev - Generate graphs using the GD library (development version)
libgdchart-gd2-xpm - Generate graphs using the GD library
libgdchart-gd2-xpm-dev - Generate graphs using the GD library (development version)
libgdgeda-dev - GNU EDA -- Electronics design software -- gd development files
libgdgeda6 - GNU EDA -- Electronics design software -- gd library files
libgdk-imlib-ruby1.6 - Gtk+ and gdkimlib interface for Ruby
libgdk-pixbuf-dev - The GdkPixBuf library - development files
libgdk-pixbuf-gnome-dev - The GNOME1 GdkPixBuf library - development files
libgdk-pixbuf-gnome2 - The GNOME1 Canvas pixbuf library
libgdk-pixbuf-ruby1.6 - Gtk+ and gdkpixbuf interface for Ruby
libgdk-pixbuf2 - The GdkPixBuf image library, gtk+ 1.2 version
libgdk-pixbuf2-ruby - Gdk-Pixbuf 2 bindings for the Ruby language
libgdome2-0 - DOM level2 library for accessing XML files
libgdome2-cpp-smart-dev - C++ bindings for GDome2 DOM implementation
libgdome2-cpp-smart0 - C++ bindings for GDome2 DOM implementation
libgdome2-dev - Development files for libgdome2
libgdome2-ocaml - OCaml bindings for GDome2 DOM implementation
libgdome2-ocaml-dev - OCaml bindings for GDome2 DOM implementation
libgdome2-xslt-dev - Minimal XSLT processor working on GDome2 documents
libgdome2-xslt-ocaml - OCaml bindings for a minimal GDome2 based XSLT processor
libgdome2-xslt-ocaml-dev - OCaml bindings for a minimal GDome2 based XSLT processor
libgdome2-xslt0 - Minimal XSLT processor working on GDome2 documents
php3 - PHP3 scripting language - apache module
php3-cgi - PHP3 scripting language - cgi version
python-gd - Python module wrapper for libgd
il y en a a exclure d'office mais bon :cry:

Merci!!

Posté : 26 févr. 2005, 22:10
par rami
tu peux la telecharger ici: http://www.boutell.com/gd/

Posté : 26 févr. 2005, 22:37
par Xenon_54
Il te faudrait après compiler PHP avec le support GD

:)

Posté : 26 févr. 2005, 22:56
par DT
C'st bon, en fait fallait installer le module php4-gd ... (non ne me fouttez pas ...!)

mais il y a un autre probleme :x

il me met plein d'erreur sur mes fonctions.... bizzare.....
Warning: imagecreatefromjpeg(): './albums/2/affiche_legende.php' is not a valid JPEG file in /home/taverne/public_html/mcGallery/resize.php on line 30

Warning: imagesx(): supplied argument is not a valid Image resource in /home/taverne/public_html/mcGallery/resize.php on line 32

Warning: imagesy(): supplied argument is not a valid Image resource in /home/taverne/public_html/mcGallery/resize.php on line 33

Warning: Division by zero in /home/taverne/public_html/mcGallery/resize.php on line 36

Warning: imagecreate(): Invalid image dimensions in /home/taverne/public_html/mcGallery/resize.php on line 38

Warning: imagecopyresized(): supplied argument is not a valid Image resource in /home/taverne/public_html/mcGallery/resize.php on line 40

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/taverne/public_html/mcGallery/resize.php on line 42
Vignette affiche_legende.php: ok


Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/taverne/public_html/mcGallery/resize.php on line 45

Warning: imagecreate(): Invalid image dimensions in /home/taverne/public_html/mcGallery/resize.php on line 38

Warning: imagecopyresized(): supplied argument is not a valid Image resource in /home/taverne/public_html/mcGallery/resize.php on line 40

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/taverne/public_html/mcGallery/resize.php on line 42
Vignette etoile00.jpg: ok


Warning: imagecreate(): Invalid image dimensions in /home/taverne/public_html/mcGallery/resize.php on line 38

Warning: imagecopyresized(): supplied argument is not a valid Image resource in /home/taverne/public_html/mcGallery/resize.php on line 40

Posté : 27 févr. 2005, 03:15
par fab
bah les fonctions éxistent c'est déjà ça , mais leur utilisation n'est pas bonne réfère toi a la documentation ( http://fr.php.net ) pour en savoir plus :)

Posté : 27 févr. 2005, 14:43
par Invité
ok merci je vai essayer de voir ca !