coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Joe Belmaati on June 15, 2004, 10:00:30 AM

Title: gd1/gd2 related; possible to have both running on a linux server?
Post by: Joe Belmaati on June 15, 2004, 10:00:30 AM
You may think I am crazy, but I actually prefer the thumbnails created by gd1.6 compared to gd2.0 I find the colour rendering is more precise with gd2, and the photograph is less truncated. On the other hand, thumbnails are much better focused with gd1.6. Anyways, that's just my opinion. On to my question:

Does anyone know whether it is possible to have both gd1.6 and gd2.0 installed on a linux server? There's an option to choose either in the configuration panel of Coppermine, so maybe with both versions of gd installed, it would be possible to switch...?

Any help is much appreciated.
Best,
Joe Belmaati
Copenhagen Denmark
Title: Re: gd1/gd2 related; possible to have both running on a linux server?
Post by: Joachim Müller on June 16, 2004, 04:21:51 PM
not a question of coppermine, but of the PHP install on your server. I'm not sure, but I don't think it's possible to have to different versions of GD. The only "real" difference between GD1 and GD2 thumbnails is in the color depth: GD1 doesn't support true color. This is what you could do: check the thumbnail creation part of coppermine and add a line to reduce the color depth: this way, GD1-style thumbnails will be created. Since I have never heard of anyone requesting this before (prefering worse quality thumbs over better quality) I hope you understand that I won't be looking into your request in detail, as I don't see a point in your request.

GauGau
Title: Re: gd1/gd2 related; possible to have both running on a linux server?
Post by: Joe Belmaati on June 16, 2004, 04:34:33 PM
Thanks Gaugau,
where would I find the related code in Coppermine?
Title: Re: gd1/gd2 related; possible to have both running on a linux server?
Post by: Joachim Müller on June 16, 2004, 04:43:17 PM
I knew you were going to ask this question, that's why I wrote that I won't be looking into your question in detail. I simply don't know, I would have to dig as well.

GauGau
Title: Re: gd1/gd2 related; possible to have both running on a linux server?
Post by: hyperion on June 17, 2004, 04:06:34 AM
You cannot have both GD1 and GD2 enabled at the same time.  The server will not start.  It wouldn't work in PHP anyway, as the library is accessed through a single set of functions, and the functions do not allow you to specify which library you want to use.

The closest you'd come would be to use imageresized instead of imageresampled for the thumbs.  You'd have to reorganize the include/picmgmt file so that the add_picture function would call different resize functions for each of the pics it generates.