Jump to content

PHP Image Size


Daney11

Recommended Posts

Hey guys,

 

Im having a problem with resizing images.

 

Im using bbcode to post images and it works perfect.

 

$Text = preg_replace("/\[img\](.+?)\[\/img\]/", '<img src="$1">', $Text);

 

And im outputting using:

 

echo BBCode(wordwrap($news_body, 71, " ", true));

 

Now, if a user posts

 

[img=http://www.cruxguild.org/images/20080316_illidan_ogre.jpg]

 

It displays the image in full. Im not sure on how to get it so that the image can be made small if the width=<508px

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/148635-php-image-size/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.