Create Intermediate but display Full Image? Create Intermediate but display Full Image?
 

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

Create Intermediate but display Full Image?

Started by bitcloud, April 13, 2007, 02:52:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bitcloud

Hi,

I'm wanting to have the intermediate image created (to use as a larger thumbnails in other peoples forums etc) but i don't want to have my coppermine gallery display this intermediate image. - IE I want the gallery to display the full image just as it does when "create intermediate images" is turned off, but i want the intermediate images created and just sitting on the server so i can display these on other sites which have fixed width layouts.

This seems like it should be really easy to do. can anyone point me in the right direction?

Cheers
Lachlan

bitcloud

ok, I hate giving coding advice because i'm very messy, but in your themes.php (if the code doesn't exist copy it into your themes.php from themes.inc.php)

find:

$picture_url = get_pic_url($CURRENT_PIC_DATA, 'normal');

replace with:

// $picture_url = get_pic_url($CURRENT_PIC_DATA, 'normal');
$picture_url = get_pic_url($CURRENT_PIC_DATA, 'fullsize');


Then you can still use the intermediate pics without any trouble, but it will always display the full size images.       

Joachim Müller

Thanks for returning and resolving your thread.