Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

hooiyijun

Pioneers
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Real Name
    Jun

hooiyijun's Achievements

  1. Hi, I met the problem that i cannot adjust watermark text to big. This look like the maximum point up to 5. This is because the people cannot see the small text. I readed the code from phpthumb.filters.php. The code shows in the following: Line 1178 $size = min(5, max(1, $size)); Although i hide the above code, but the watermark text is same, too small. I checked another place from phpthumb.filters.php. This look like the following code cause the watermark text image to be fixed. Line 1181 $text_width = 0; Line 1182 $text_height = 0; Line 1183 foreach ($textlines as $dummy => $line) { Line 1184 $text_width = max($text_width, ImageFontWidth($size) * strlen($line)); Line 1185 $text_height += ImageFontHeight($size); Line 1186 } I changed "$text_width = 0;" to "$text_width = 100;", and changed "$text_height = 0;" to "$text_height = 100;", the problem still same. The watermark text is too small to me. Anyone can solve this problem? I cannot clear what is wrong with the above code. Thanks, Jun
×
×
  • Create New...