Author Topic: Thumbnail size  (Read 5134 times)

0 Members and 1 Guest are viewing this topic.

Offline syella1

  • Newbie
  • *
  • Posts: 12
    • View Profile
Thumbnail size
« on: June 27, 2003, 08:45:43 PM »
I have my own thumbnail files to which i give the path but these are not of the same size, can i do some changes in the code of functions.php to set a fixed width and height to all the images

If so what changes (my knowledge of PHP is 0) Thanks

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
Thumbnail size
« Reply #1 on: June 27, 2003, 10:13:27 PM »
in functions.php find $thumb = "<img src=\"".$file_src."\" border=\"0\"".$width_height." alt=\"".$image_name."\" />"; and change width and height to fixed... but i'm afraid this gonna look ugly enough

Offline syella1

  • Newbie
  • *
  • Posts: 12
    • View Profile
Thumbnail size
« Reply #2 on: June 28, 2003, 07:01:49 AM »
It did not work
May be my PHP coding skills are so great

Would appreciate if any one could give me the exact code change

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Thumbnail size
« Reply #3 on: June 28, 2003, 11:05:11 AM »
Code: [Select]
$thumb = "<img src=\"".$file_src."\" border=\"0\" width=\"<width>\" height=\"<height>\" alt=\"".$image_name."\" />";
Just replace <width> and <height>

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline syella1

  • Newbie
  • *
  • Posts: 12
    • View Profile
Thank you
« Reply #4 on: June 30, 2003, 10:02:49 PM »
It worked
Thank you