gd1/gd2 related; possible to have both running on a linux server? gd1/gd2 related; possible to have both running on a linux server?
 

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

Main Menu

gd1/gd2 related; possible to have both running on a linux server?

Started by Joe Belmaati, June 15, 2004, 10:00:30 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Joe Belmaati

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

Joachim Müller

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

Joe Belmaati

Thanks Gaugau,
where would I find the related code in Coppermine?

Joachim Müller

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

hyperion

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.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)