Daney11 Posted March 9, 2009 Share Posted March 9, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.