PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
The function works fine - but when width and height arguments are added to the function, the height argument is ignored.
I did some checking, and both the width and height arguments are passed properly in to the function.. not sure why they aren't both being accepted though.
By default, the width and height are maximum values. That is, the image is expanded or contracted to fit the width and height value while maintaining the aspect ratio of the image. Append an exclamation point to the geometry to force the image size to exactly the size you specify. For example, if you specify 640x480! the image width is set to 640 pixels and height to 480.
try the exclamation point for an exact dimension.. beware of squashing...