Thread Rating:
  • 1 Votes - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 a good Image Resizer
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: a good Image Resizer
You could edit inc/class_parser.php and specify maximum dimensions for images.

Look at this code:

PHP Code:
1
2
3
4
5
6
7
8
		if($dimensions[0] > 0 && $dimensions[1] > 0)
		{
			return "<img src=\"{$url}\" width=\"{$dimensions[0]}\" height=\"{$dimensions[1]}\" border=\"0\" alt=\"\"{$css_align} />";
		}
		else
		{
			return "<img src=\"{$url}\" border=\"0\" alt=\"\"{$css_align} />";			
		}

To both the <img> tags, add something like:

Code:
style="max-width: 300px"


My Blog
03-07-2008 12:47 PM
Find all posts by this user

« Next Oldest | Next Newest »

Messages In This Thread
a good Image Resizer - ORGAN - 03-07-2008, 01:48 AM
RE: a good Image Resizer - ZiNgA BuRgA - 03-07-2008 12:47 PM
RE: a good Image Resizer - ORGAN - 03-07-2008, 07:30 PM
RE: a good Image Resizer - ZiNgA BuRgA - 03-07-2008, 08:43 PM
RE: a good Image Resizer - ORGAN - 03-07-2008, 08:47 PM
RE: a good Image Resizer - ZiNgA BuRgA - 03-07-2008, 10:44 PM
RE: a good Image Resizer - ORGAN - 03-07-2008, 10:50 PM
RE: a good Image Resizer - ORGAN - 05-02-2008, 05:26 PM
RE: a good Image Resizer - ZiNgA BuRgA - 05-03-2008, 03:39 PM
RE: RE: a good Image Resizer - marcus - 05-04-2008, 06:13 PM
RE: a good Image Resizer - Guest - 05-15-2008, 06:31 PM
RE: a good Image Resizer - incadude - 05-28-2008, 01:58 PM

 Standard Tools
Forum Jump: