help with GD2 help with GD2
 

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

help with GD2

Started by mrjboyle, February 03, 2014, 04:06:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mrjboyle

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

ΑndrĂ©

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.