Jump to content

Reduce img size


drisate

Recommended Posts

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");

Link to comment
https://forums.phpfreaks.com/topic/268506-reduce-img-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.