Thread Rating:
  • 1 Votes - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 a good Image Resizer
ORGAN Offline
Junior Member
**
Posts: 13
Joined: Jan 2008
Post: #1
a good Image Resizer
where can I find one the will work with [img] tags

& i know about the one that only resizes the width
but I need width AND hight

****************************************

O & I could use a Image upload in post =)
(This post was last modified: 03-07-2008 01:49 AM by ORGAN.)
03-07-2008 01:48 AM
Find all posts by this user
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
ORGAN Offline
Junior Member
**
Posts: 13
Joined: Jan 2008
Post: #3
RE: a good Image Resizer
Well I started I site where people are making video game levels & they are posting BIG screen shouts
http://utps3.incadudef.com/Forum/showthread.php?tid=6
Its quite a eye sore Tongue

[Image: kokki1ax6.jpg]

I would like the photos to be auto Resized to like Width 541 & Height 340

that would be sweet

& I can't find the code you pointed out in your post Tongue
(This post was last modified: 03-07-2008 08:42 PM by ZiNgA BuRgA.)
03-07-2008 07:30 PM
Find all posts by this user
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: a good Image Resizer
ORGAN Wrote:& I can't find the code you pointed out in your post Tongue
Um, it's there.  Use Find?

My Blog
03-07-2008 08:43 PM
Find all posts by this user
ORGAN Offline
Junior Member
**
Posts: 13
Joined: Jan 2008
Post: #5
RE: a good Image Resizer
Parse error: parse error, unexpected T_STRING in /homepages/16/d200218465/htdocs/UT3/Forum/inc/class_parser.php on line 718

I suck at this stuff LOL Tongue
(This post was last modified: 03-07-2008 09:16 PM by ORGAN.)
03-07-2008 08:47 PM
Find all posts by this user
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #6
RE: a good Image Resizer
Change the above code to something like this:

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\" style=\"max-width: 541px; max-height: 340px;\" alt=\"\"{$css_align} />";
		}
		else
		{
			return "<img src=\"{$url}\" border=\"0\" style=\"max-width: 541px; max-height: 340px;\" alt=\"\"{$css_align} />";			
		}

Oh BTW, this won't work on IE6, since it sucks.
And this is a really simple quick solution - it will almost always cause large images to have distorted dimensions.


My Blog
(This post was last modified: 03-07-2008 10:45 PM by ZiNgA BuRgA.)
03-07-2008 10:44 PM
Find all posts by this user
ORGAN Offline
Junior Member
**
Posts: 13
Joined: Jan 2008
Post: #7
RE: a good Image Resizer
cool I hat IE Tongue

firefox all the way =)

thanks

*************[EDIT]********

works grate =) thank you vary much
(This post was last modified: 03-07-2008 11:07 PM by ORGAN.)
03-07-2008 10:50 PM
Find all posts by this user
ORGAN Offline
Junior Member
**
Posts: 13
Joined: Jan 2008
Post: #8
RE: a good Image Resizer
the code just stopped working today ?
05-02-2008 05:26 PM
Find all posts by this user
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #9
RE: a good Image Resizer
You're going to have to give more information.  Code just doesn't work for a while, then decide to stop working...

My Blog
05-03-2008 03:39 PM
Find all posts by this user
marcus Offline
Junior Member
**
Posts: 4
Joined: Apr 2008
Post: #10
RE: RE: a good Image Resizer
Try the Image Resizer plugin by Cipher. It only has a width setting, but I'm pretty sure it automatically adjusts the height to suitably match. At least it does on my forum.

http://mods.mybboard.net/view/image-resizer
(This post was last modified: 05-04-2008 06:16 PM by marcus.)
05-04-2008 06:13 PM
Find all posts by this user

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: