Jump to content


How to Resize the Gallery Images


  • You cannot reply to this topic
No replies to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 12 September 2004 - 10:40 PM

How to Resize the Gallery Images


FIND:

/mkportal/modules/gallery/index.php said:

$imagesize_x = $image_details[0];
  if($imagesize_x > 600) {
  $size = $mklib->ResizeImage(600,"$mklib->sitepath/mkportal/modules/gallery/album/$file");
  $dims = "width='600' height='$size[1]'";
  }



Replace the default MKPortal gallery image width (600) in the code above with the width (in pixels) that you want your gallery images to be.

(Note that the gallery images in MKPortal are resized using html height and width attributes. The image file itself is not actually resized.)

-=DKC=-


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users