forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: 4mB3r197 on February 09, 2005, 07:15:55 pm

Title: Low color depth of pictures after upgrade to PHP5 ?
Post by: 4mB3r197 on February 09, 2005, 07:15:55 pm
Hi all,

I've used the search-function already and had been able to solve some problems concerning the functionality of CPG 1.3 under PHP5.
One problem still exists for which I couldn't find a solution - yet.
All pictures that I've uploaded since the upgrading from PHP4 to PHP5 are displayed in a low color depth or with less colors than the original picture. This concerns the thumbnails and the picture after having clicked the thumbnail. If you enlarge the picture by clicking the pic in the album it is shown in it's original colors and color-depth.

Does anyone know this strange case and maybe know how to solve it ?
My gallery can be found at www.amber197.de and "Galerie" in the menu on the left. Just navigate down to the latest three uploads and check the pictures. Especially the "flyer"-pic shows what I mean.

Many thanks in advance !
Title: Re: Low color depth of pictures after upgrade to PHP5 ?
Post by: Casper on February 09, 2005, 07:38:18 pm
When you upgraded, your GD was also upgraded, from GD1 to GD2.

You must go into your config admin area, and change the settings for this.

You can then use the admin tools to rebuild the thumbnails and intermediate pics.
Title: Re: Low color depth of pictures after upgrade to PHP5 ?
Post by: 4mB3r197 on February 09, 2005, 07:59:38 pm
Ah, ok. Are there certain settings I have to pay attention for ?
Can I change this for all albums at once or do I have to make them only for the albums containing the last uploaded images ?

I think you mean step 1 in the admin-area, right ? This says "Actualize thumbnails and/or pictures in-between size." Is this the right option to choose ?
Sorry for the possibly stupid question but I want to prevent some changes which make the whole thing worse.  :-\\
Title: Re: Low color depth of pictures after upgrade to PHP5 ?
Post by: Casper on February 09, 2005, 08:47:15 pm
You only need to do the albums that have bad pics in.  It will not hurt if you do the others, but you should only do 1 album at a time if there are a lot to do.

It is the first section of the admin tools, in english 'Update thumbs and/or re-sized photos'.
Title: Re: Low color depth of pictures after upgrade to PHP5 ?
Post by: 4mB3r197 on February 09, 2005, 09:11:56 pm
Thanks for the right translation since my CPG is in german.  ;)

Well, I did it the way you suggested, but get the error-message

"Warning: chmod() [function.chmod]: Operation not permitted in ***/coppermine/include/picmgmt.inc.php on line 224
albums/userpics/thumb_sIMAGE_103.jpg erfolgreich geändert!"

which seams to be clear since wrong CHMOD-settings (which and where do I have to correct them ?) but on the other hand the message says "erfolgreich geändert" which means "successfully changed".   :-\\

The thumbnails and the picture in the album hasn't been changed at all. 
I correct CHMOD for "picmgmt.inc.php" now and try again.
Title: Re: Low color depth of pictures after upgrade to PHP5 ?
Post by: 4mB3r197 on February 09, 2005, 09:14:41 pm
Well, after having set CHMOD to 777 the script won't still work. Again the same error-message.  ???
Title: Re: Low color depth of pictures after upgrade to PHP5 ?
Post by: 4mB3r197 on February 09, 2005, 10:32:13 pm
And what will happen when I'm adding new pictures ? I guess that they'll also be color-recuced and I don't want to the admin-function after each upload of a picture. ;)
Title: Re: Low color depth of pictures after upgrade to PHP5 ?
Post by: kegobeer on February 10, 2005, 02:00:55 am
Any pictures you upload after switching to GD2 will use GD2.
Title: Re: Low color depth of pictures after upgrade to PHP5 ?
Post by: 4mB3r197 on February 10, 2005, 06:57:18 pm
Well, that means that all uploaded pictures should be fine, but that's not the way it is. All pictures I uploaded and do upload after the change from PHP4 to 5 are displayed with the wrong color depth. Looks merely like 16 colors.  >:(
Title: Re: Low color depth of pictures after upgrade to PHP5 ?
Post by: 4mB3r197 on February 10, 2005, 07:15:32 pm
Ok, I just solved the problem.
I had to change from GD1 to GD2 in the config.php . Got this idea when I just found another thread concerning thumbnails which suddenly appear faded at  >> this link << (http://forum.coppermine-gallery.net/index.php?PHPSESSID=364a4d19a873708a32993ac3c25a4794&topic=10929.0) .

I rebuilt the last inserted pictures which didn't help completely. Now all thumbnails of the album are ugly but the pictures themself are ok again.
AND every newly added image is looking fine as well as a thumbnail and as the album-picture.

CPG is great stuff ! :)
Title: Re: Low color depth of pictures after upgrade to PHP5 ?
Post by: kegobeer on February 10, 2005, 10:43:52 pm
That's what Casper said:

Quote
When you upgraded, your GD was also upgraded, from GD1 to GD2.

You must go into your config admin area, and change the settings for this.