Advanced search  

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

Pages: [1]   Go Down

Author Topic: [Solved] Max thumb height and max intermediate width  (Read 5518 times)

0 Members and 1 Guest are viewing this topic.

ludde

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
[Solved] Max thumb height and max intermediate width
« on: June 13, 2004, 08:04:50 pm »

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? )
« Last Edit: June 15, 2004, 12:21:42 pm by ludde »
Logged

ludde

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: [Solved] Max thumb height and max intermediate width
« Reply #1 on: June 15, 2004, 12:25:55 pm »

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
Code: [Select]
$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.
« Last Edit: June 15, 2004, 12:34:21 pm by ludde »
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.