[Solved] Max thumb height and max intermediate width [Solved] Max thumb height and max intermediate width
 

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

[Solved] Max thumb height and max intermediate width

Started by ludde, June 13, 2004, 08:04:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ludde

I have a problem, my thumbnails can´t be higher then 75 pixels, and because of my page layout and design the intermediate pictures must be 540 pixels wide, or less (but only if the original image is less then 540 pixels wide).

As coppermine functions right now I must choose either height or width in the config... And the max aspect function doesn´t really work for me either....

So basically, what I´m asking for is where and how you change the code so I can set my thumbs to a maximum height of 75 pixels and the width of the intermediate pictures to 540 pixels.

( Is this function something you are planning to add in the future? If so, when? In days? Months? )

ludde

I solved it by using phpThumb.
http://prdownloads.sourceforge.net/phpthumb/phpThumb_1.4.4.zip?use_mirror=switch

The phpThumb files I addded to the coppermine directory...

Then I edited the displayimage.php

$pic_html .= "<img src=\"phpThumb.php?src=/coppermine1.3.0/" . $picture_url . "&w=520\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";


And in the config you´ll have to change the maximumsize for intermediate pictures to something a high value.

This way is a real waste of resources, since the fullsize picture actually has to be resized three times, to thumbpicture, to intermediate and then again by phpthumb to the inermediate picturesize I want...

But I´m sure this is a much better way to do this... But this solution will do until someone comes up with a better one.