drisate Posted September 18, 2012 Share Posted September 18, 2012 Hey guys i need a code that will find all images of a string and check the size. If the width is bigger then a certain value it changes to the max-width. Images can come in various formats and the attributes may be in different orders ... the width tag may or may not be in ... The ideal code would come in a function format like this: $output = resize_img ("$html", "$max_img_width", "$max_img_height"); Quote Link to comment https://forums.phpfreaks.com/topic/268506-reduce-img-size/ Share on other sites More sharing options...
Adam Posted September 18, 2012 Share Posted September 18, 2012 May I recommend the freelance board? Seriously, we're not sat here waiting for you to give us something to do. Quote Link to comment https://forums.phpfreaks.com/topic/268506-reduce-img-size/#findComment-1378870 Share on other sites More sharing options...
jcbones Posted September 19, 2012 Share Posted September 19, 2012 Or, you could get it free from White Hat through their simpleImage class. Its a little dated, but works well. Quote Link to comment https://forums.phpfreaks.com/topic/268506-reduce-img-size/#findComment-1379170 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.