how can i resize an image like this: resize it to a specified width, keep the proportions and if the height is bigger than a specified value to crop to the specified height ? ok actually i know how to do that but i don't want to do this in a different file and refer the picture something like <img src="picture.php" />.
I need to process the image in the same page that displays it. What "bothers" me is that i have to send the image header so nothing else on the page will be displayed.
Is there a way to do something like that?Maybe from HTML?:P
i made a function that does something like that except that "crop" thing and it returns just width="" height="" and i use it like this <img src="image.jpg" resize("image.jpg") /> , but i don't get how can i do that crop... thanks