Low color depth of pictures after upgrade to PHP5 ? Low color depth of pictures after upgrade to PHP5 ?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Low color depth of pictures after upgrade to PHP5 ?

Started by 4mB3r197, February 09, 2005, 07:15:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

4mB3r197

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 !

Casper

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.
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

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.  :-\\

Casper

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'.
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

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.

4mB3r197

Well, after having set CHMOD to 777 the script won't still work. Again the same error-message.  ???

4mB3r197

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. ;)

kegobeer

Any pictures you upload after switching to GD2 will use GD2.
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

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.  >:(

4mB3r197

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

kegobeer

That's what Casper said:

QuoteWhen 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.
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