Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Low color depth of pictures after upgrade to PHP5 ?  (Read 6239 times)

0 Members and 1 Guest are viewing this topic.

4mB3r197

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Low color depth of pictures after upgrade to PHP5 ?
« 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 !
« Last Edit: February 10, 2005, 08:03:34 pm by TranzNDance »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Low color depth of pictures after upgrade to PHP5 ?
« Reply #1 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.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

4mB3r197

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Low color depth of pictures after upgrade to PHP5 ?
« Reply #2 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.  :-\\
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Low color depth of pictures after upgrade to PHP5 ?
« Reply #3 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'.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

4mB3r197

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Low color depth of pictures after upgrade to PHP5 ?
« Reply #4 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.
Logged

4mB3r197

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Low color depth of pictures after upgrade to PHP5 ?
« Reply #5 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.  ???
Logged

4mB3r197

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Low color depth of pictures after upgrade to PHP5 ?
« Reply #6 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. ;)
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Low color depth of pictures after upgrade to PHP5 ?
« Reply #7 on: February 10, 2005, 02:00:55 am »

Any pictures you upload after switching to GD2 will use GD2.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

4mB3r197

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Low color depth of pictures after upgrade to PHP5 ?
« Reply #8 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.  >:(
Logged

4mB3r197

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Low color depth of pictures after upgrade to PHP5 ?
« Reply #9 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 << .

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 ! :)
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Low color depth of pictures after upgrade to PHP5 ?
« Reply #10 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.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.