Image Magick/GD and such

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
rookiestripes
Posts: 15
Joined: Sun 1. May 2005, 11:32

Image Magick/GD and such

Post by rookiestripes »

Hallo an alle,

das CMS gefällt mir immer mehr, auch wenn ich durch die Installation des Calender Hacks von ironrock meine gesamte Seite gekillt habe (dank DB Backup ist aber alles wieder so wie es war)

Wollte jetzt mal anfangen eine Galerie zu implementieren und mittels des Content Parts "Bilder" ist das ja glaub ich auch möglich. Habe bei der Installation bereits etwas von ImageMagick und GD gelesen. Da ich mir nicht sicher war, für was genau diese Sachen gut sind (die Anfänger halt), habe ich mal in meine phpinfo reingeschaut, und festgestellt daß GD enabled ist. Das fand ich schon mal toll ;-)).

Jetzt wollte ich mal den Filemanager benutzen, um Bilder in ein Verzeichnis "galerie" zu laden. Das wiederum klappt nicht so, wie ich mir das vorgestellt habe. Also dachte ich, daß das bestimmt an diesem ImageMagick Zeugs liegen muß.

Jetzt meine Anfänger-Frage: Muß das ImageMagick erst bei mir auf der Seite installiert werden, damit ich eine Galerie (Thumbnail/großes Bild) realisieren kann?

---------------------------------------------------------------------------------

I m starting to like CMS more and more, even if the installation of ironrock`s calendar hack killed my entire site (however, thanks to the backup of the database, everything is back to normal again).

I just wanted to implement a gallery on my site and I guess this is possible through the usage of the content part "Pictures". During the installation of the script itself, I read something about ImageMagick and GD. As I was not sure about the purpose of these two things (typical beginner I know), I took a look in my phpinfo and found out that GD was enabled. That cheered my up ;-)).

I also wanted to use the in-built filemanager to upload some pictures in the directory "gallery". This, however, didn`t turn out the way I planned. So I thought the ImageMagick thing could be a reason for this.

Now my beginner quesiton: Does ImageMagick need to be installed on my site, so that I can build up a gallery (thumbnail/big image)? realisieren kann?
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

nein Imagick ist eine alternative (etwas besser) zu GD. Eine installation von Imagick kann nur der Administrator des Webservers durchführen :?
Prüfe die installierte GD-Version und setzte in deiner conf.inc.php das entsprechende Parameter.

Was klappt den nicht so 'wie du es dier vorstellst' ?

no- Imagick is just an alternate Produkt for GD. The installation of Imagick can only done by the Webserver Administrator.
Check wich Version of GD is installed and change the Parameters for it in your conf.inc.php.

What's not working for you?
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Pappnase

Post by Pappnase »

hallo

hast du dir das hier schon durchgelesen!?

http://www.phpwcms-docu.de/index.php?datei_hochladen

wenn ja was klappt denn nicht!?
rookiestripes
Posts: 15
Joined: Sun 1. May 2005, 11:32

Post by rookiestripes »

Da ich mehrere Bilder hochladen wollte, ging ich nach Doku und hab alles mittels FTP Programm in den Ordner phpwcms_ftp geladen. Dann habe ich über FTP_Transfer im CMS selber die Dateien und das Wurzelverzeichnis ausgewählt und versucht alles zu übernehmen.

Hierauf erscheint folgende Message im Browser:

selected files uploaded via ftp will be taken over!


Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /mnt/ja1/06/891/00000004/htdocs/cms/include/inc_ext/hft_image/hft_image.php on line 248

Wenn ich jetzt die "Zurück" Funktion vom Browser nutze, und wieder auf Dateizentrale gehe, dann erscheinen alle Bilder in dem ausgewählten Verzeichnis. Die Bildvorschau jedoch, die ja eigentlich neben der Bildbezeichnung stehen sollte, ist nicht vorhanden. Einfach nur ein kleines Mini-Icon, das anzeigt, daß es sich um ein Bild handelt.

Wenn ich jetzt zur Artikelzentrale zurückkehre, einen neuen Artikel erstelle mit dem content part Bilder und den Filebrowser nutzen möchte, dann öffent sich zwar das Fenster mit dem Rootverzeichnis und dem Verzeichnis "galerie", welches eigentlich die Bilder enthalten sollte. Wenn ich auf dieses Verzeichnis klicke, wird dieses Verzeichnis nicht aufgeklappt und die Anzeige "Bilddateien" sagt mir auch, daß nichts vorhanden ist.

-------------------------------------------------------------------------------------

As I wanted to upload more than just one picture, I went by the online documentation and used a ftp program to upload them to the phpwcms_ftp directory. Via FTP_transfer in the cms itself, I selected the pictures I wanted to take over plus the directory which I wanted the pictures to be loaded into and tried to take everything over.

I then got the following message from the browser:

selected files uploaded via ftp will be taken over!


Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /mnt/ja1/06/891/00000004/htdocs/cms/include/inc_ext/hft_image/hft_image.php on line 248

However, if I now use the "back" function of the browser and click on file base (or whatever it is called in the English equivalent of the CMS), all pictures show up in the directory. There are no picture previews, which are supposed to be right next to the picture description. There is just a tiny little icon indicating that it is a picture.

If I now return back to the articles to create a new one using the content part "Pictures" and if I wanna use the file browser, the requested window pops up showing me the root directory plus the directory "gallery", which is supposed to contain the pictures. If I click on this directory, it simply stays closed and the display "picture files/data" (whatever it is called) tells me that no pictures are available.
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi
Fatal error: imagecreatetruecolor(): requires GD 2.0 or later
this is your Problem - your Server don't have GD V.2 and the GD 1 didn't support this Function - so set in your conf.inc.php the Parameter for GD right.

Or ask your Provider for a Upgrade of the GD or better to Imagick
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
rookiestripes
Posts: 15
Joined: Sun 1. May 2005, 11:32

Post by rookiestripes »

Does that mean that the file browser won`t work on my site at all and that I cannot put up a gallery?

This is the way I changed my config.inc.php:

// other stuff
$phpwcms["compress_page"] = 0; //0 = OFF, 1-9: page compression ON (1 = low level, 9 = highest level)
$phpwcms["imagick"] = 0; //0 = GD, 1 = ImageMagick, 2 = ImageMagick 4.2.9
$phpwcms["imagick_path"] = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"] = 0; //0 = GD1, 1 = GD2
$phpwcms["rewrite_url"] = 0; //whether URL should be rewritable
$phpwcms["wysiwyg_editor"] = 2; //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
$phpwcms["phpmyadmin"] = 1; //enable/disable phpMyAdmin in Backend
$phpwcms["default_lang"] = "en"; //default language
$phpwcms["charset"] = "iso-8859-1"; //default charset 'iso-8859-1'
$phpwcms["allow_remote_URL"] = 0; //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed
$phpwcms["gt_mod"] = 0; //0 = Graphical Text MOD disabled, 1 = enabled
$phpwcms["jpg_quality"] = 75; //JPG Quality Range 25-100
$phpwcms["sharpen_level"] = 1; //Sharpen Level - only ImageMagick: 0, 1, 2, 3, 4, 5 -- 0 = no, 5 = extra sharp
$phpwcms["allow_ext_init"] = 1; //allow including of custom external scripts at frontend initialization
$phpwcms["allow_ext_render"] = 1; //allow including of custom external scripts at frontend rendering
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

sorry -

can't answer this Question, cause I have Imagick and I don't know what's in GD1 or GD2 is working or not.

maybe someone who has GD1 in use can give you a Answer.

Your conf.inc looks OK for me
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
rookiestripes
Posts: 15
Joined: Sun 1. May 2005, 11:32

Post by rookiestripes »

Alright, I just got back to cms and tried again. After i changed the config.inc.php, everything is working fine for me right now. The images appear, you can pop 'em up if you click on them. Perfect.

Thanx for the quick support guys.

Greetz
rookie
Post Reply