help with GD2 help with GD2
 

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

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.