forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: sylunt1 on July 27, 2004, 03:12:32 am

Title: GD and ImageMagick
Post by: sylunt1 on July 27, 2004, 03:12:32 am
Is it possible to switch a GD2 install to use ImageMagick?  If so, how?

Thanks,

Chris
Title: Re: Switching GD to ImageMagick
Post by: OmegaGOD on July 27, 2004, 05:13:54 am
Is it possible to switch a GD2 install to use ImageMagick?  If so, how?

Thanks,

Chris

Yes, it is possible to switch from GD2 to ImageMagick. First log into CPG as an administrator. Select the "Config" tab. Then under "Method for resizing images", select "ImageMagick". Then under "Path to ImageMagick 'convert' utility (example /usr/bin/X11/)" you will need to enter the exact path to the convert binary. On most webservers it will probably located at "/usr/bin/". Now CPG will use Imagemagick instead of GD2 generate thumbnails and intermediate pictures for future image additions to the photo gallery. As for the images already into the gallary, you will have to use the Resize Feature located under the "Admin Tools" to regenerate thumbnails and intermediate pictures using ImageMagick.

Hope this helps.

--OmegaGOD
Title: Re: Switching GD to ImageMagick
Post by: sylunt1 on July 30, 2004, 07:11:54 pm
Excellent - thank you.

Can anyone tell me what the advantages/disadvantages of using either ImageMagick or GD2 are?  I have access to both.

Thanks,
Chris
Title: Re: GD and ImageMagick
Post by: kegobeer on July 31, 2004, 05:18:58 am
You can find a lot of information about them both on the web.  In a few words: GD v2.xx and ImageMagick are both good.  ImageMagick supports more file types, but has no built in functions with php.  GD comes bundled with most php installs, but produces slightly poorer thumbnails.  Up until a few days ago, GIF support was not in GD.  However, the latest version now supports read/write GIF functions again (check out www.boutell.com/gd for more info).  Coppermine still won't support GD & GIF without some modifications (search the forums for my mod).

If you want top of the line intermediate and thumb pictures, use ImageMagick.  For most people, GD2 does the job just fine.  So, it's pretty much a personal preference IMHO.
Title: Re: GD and ImageMagick
Post by: sylunt1 on July 31, 2004, 06:14:33 am
That's the kind of info I was looking for - thank you.

Thanks,

Chris

Title: Re: GD and ImageMagick
Post by: Joachim Müller on July 31, 2004, 07:15:46 am
there's another slight disadvantage when using ImageMagick: when batch-adding pics to the coppermine database, ImageMagick starts a separate process for all pics that need thumbs and intermediate files being built, often resulting in a high server load. This may result in a 100% server load. As a result, you can not add as many pics in one go with batch-add using ImageMagick than with GD.

GauGau