Image Size Selection Image Size Selection
 

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

Image Size Selection

Started by sandman53, September 08, 2006, 07:09:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sandman53

I plan to use Coppermine for a Wallpaper Gallery, but the problem is I don't want to post the same image twice just because they are two different sizes. I'm wondering if there is a mod out there where you can select what size the full image will display.

They will of course be hard coded by the administrator. It doesnt matter if it stretches the image or not, I just really want this so I dont have to post the same image more than once. After all, shrinking 1024 x 768 to 800 x 600 is better than posting the same image twice is it not?

Or if anyone has any suggestions I would greatly appreciate them

Joachim Müller

Setting intermediate-sized images to 800 pixels and then subsequently uploading your pics 1024x768 should do the trick: coppermine will create 800x600 for you then. No plugin needed. Moving accordingly.

sandman53

Well what I mean is, you have a dropdown box on the image view with two options, 800 x 600 and 1024 x 768. The user selects one of those options and when he clicks to get the full view of the picture he will get the size the he selected.

Thats what I mean. I'm not sure if thats possible though

Joachim Müller

You could add two download links at the bottom of the pic, one saying "download 800x600", the other saying "download 1024x768". This equals download links to the intermediate-sized pic and the full-sized one. This could of course be a dropdown field as well (just a matter of taste).
To add a download link at the bottom of the image, refer to Modification to create image download link.

sandman53

#4
Thats a great Idea. I take a look over the code tonight and see what I can do. Thanks for the idea!

*edit*

Would there be anyway, when uploading the image, to make... a 2nd intermediate image that is not displayed. It just sits there with the rest of the images. The difference is that it's dimensions are 800 x 600, and it just kinda sits there, but has a valid link? Or would that be too much work...

The other way is to disable the 1024 x 768 link if the normal image size is 800 x 600. Is that possible?

And one more question...

Is there anyone to get the onclick code

onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\"

To display the intermediate picture in the new window?

Joachim Müller

Everything is possible if you code it. Not an easy hack though.

sandman53

Ok, so far I have been able to figure a lot of things out... If someone could help me with 2 simple things... that would be great!

1) How do I get the category ID and use it in an IF statement?

2) How do I use the onclick fullsize command to open the intermediate image?