forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: mrjboyle on February 03, 2014, 04:06:10 pm

Title: help with GD2
Post by: mrjboyle on February 03, 2014, 04:06:10 pm
Hi All

I'm very new to PHP, but have installed CPG on a club website, but I'm having some problems with the uploaded images.

The club rules that images submitted for the club must follow certain rules, look below:

Landscape images must be 1400px longest size
Portrait images must be 1050px longest size
Colour profile must be srgb
Format must be jpeg

I have set the max image size to 1400 in the admin menu and hope that the software resizes the images to that.
But the problem is How do I change the colour space to srgb, and the output image is a gifs file not jpeg
Is there a way to change this?

Please help, I can follow basic codes, but still need help

Cheers

JB
Title: Re: help with GD2
Post by: Αndré on February 03, 2014, 04:48:34 pm
You have 2 possibilities:
1. Reject images that don't fit the requirements
2. Let Coppermine resize/convert them

Both would need some custom code, as you cannot set such special requirements via the config.