Problem with images

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
fitus
Posts: 88
Joined: Sat 13. Dec 2003, 19:04

Post by fitus »

that doesn't work. i got the same msg as before.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

fitus wrote:that doesn't work. i got the same msg as before.
Then you're not using local setup w/ drive letters :wink:
What "exactly" ~IS~ your path to Imagemagick?? Or "temporarily" modify one of the files with:

Code: Select all

echo $phpwcms["imagick_path"];
in order to see (onscreen) the path it's =trying= to use!!
fitus
Posts: 88
Joined: Sat 13. Dec 2003, 19:04

Post by fitus »

what du you mean with local setup w/ drive letters?

i'm on a redhat linux system. my path to imagemagick is
/usr/bin/convert
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

fitus wrote:what du you mean with local setup w/ drive letters?

i'm on a redhat linux system. my path to imagemagick is
/usr/bin/convert
I have an Apache server running on my PC here at home as a "test bed" for phpWCMS, as well as, an "online" webhost running Linux. The online host only provides GD1 service. So... to try out GD2 and ImageMagick... I have installed them on my local "server". It uses drive letter to path for installation of ImageMagick (i.e. d:/ImageMagick5.5.7/).
fitus
Posts: 88
Joined: Sat 13. Dec 2003, 19:04

Post by fitus »

on my server is installed imagemagick.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

fitus wrote:on my server is installed imagemagick.
Perhaps this is the problem:
http://www.phpwcms.de/forum/viewtopic.php?p=2013#2013
alexander
Posts: 53
Joined: Tue 30. Mar 2004, 14:32
Location: Cologne, Germany
Contact:

Solution?

Post by alexander »

I had the same problem (same error message) and found a solution that works wonderfully in my case. All I did was change this line in conf.inc.php:

Code: Select all

$phpwcms["use_gd2"]           = 1; //0 = GD1, 1 = GD2
to this:

Code: Select all

$phpwcms["use_gd2"]           = 0; //0 = GD1, 1 = GD2
Greetings,
Alexander
alexander
Posts: 53
Joined: Tue 30. Mar 2004, 14:32
Location: Cologne, Germany
Contact:

Update

Post by alexander »

Update: It works great - except on some single files. I received a "creating thumbnail! wait a moment!" screen for minutes. I guessed the files were too big > 1MB JPEG, so I changed the compression rate and uploaded them again, but now I receive this message (and on some files I still get the "creating thumbnail! wait a moment!" screen for a long time):

Code: Select all

 creating thumbnail! wait a moment!
 file=/homepages/11/d92337433/htdocs/phpwcms/phpwcms_filestorage/1/1_71.jpg
 file=/homepages/11/d92337433/htdocs/phpwcms/include/inc_lib/ext/hft_image/hft_image.php
Image was not resized. {GD2 suppor is OFF}
 file=/homepages/11/d92337433/htdocs/phpwcms/include/inc_lib/ext/hft_image/hft_image.php

thumbnail created

 

click here to go back
(if no automatic redirect)
I am redirected to the file list - and phpwcms attempts to load the thumbnail but can't locate the file (I get an "image missing" icon in my browser).

Can anyone help? Is the file name too long? Or file compression too high (50% JPEG)? Or are the files just too big (between 2500x3000 and 3000x3000 pixels in RGB)?

Greetings
Alexander
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Möglicherweise hast Du nicht genügend Speicher zur Verfügung. Wenn schon nur GD1 unterstützt wird, wer weiß wie Dich Dein provider sonst noch beschneidet.

Ich teste das mal bei mir hier - mit GD.

Gruß
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

OK - bloß mal schnell getestet:

3000x3000 Pixel RGB x 72 dpi = 34.3MB ungepackt + Speicher, der für die Umrechnung benötigt wird - Rest kannst Du Dir denken.

Ein simples JPG hat auf der Platte zwar nur 150kB - aber im Speicher geht es dann unkomprimiert ab...

So - grob geschätzt braucht der Prozeß zum Berechnen eines solch großen Bildes im Speicher etwa 50MB - mein Apache geht von 20MB auf über 70MB beim Erzeugen hoch.

Bei GD1 ist das sicher noch ungünstiger.

Gruß
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
alexander
Posts: 53
Joined: Tue 30. Mar 2004, 14:32
Location: Cologne, Germany
Contact:

Post by alexander »

Hallo Oliver,

tausend Dank. Ich sehe ein, dass das etwas groß ist. Ich werde also zwei Bilddateien hochladen - eine für die Galerie und eine zum Downloaden.

Beste Grüße aus Köln
Alexander
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Wenn möglich nimm ImageMagick - das zieht alles durch.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply