What this patch does is let the administrator set the max logo height & width in the config file.

Then as long as an image does not exceed the max logo height, or the max width, or both the max logo height & width, it will display the original dimensions of the image without distorting it.

If the image is too long, it will set the width.
If the image is too high, it will set the height.
If it is both, then it will set both height & width.
If it is neither, then the image will maintain it's original size.

> Then as long as an image does not exceed the max
> logo height, or the max width, or both the max
> logo height & width, it will display the original
> dimensions of the image without distorting it.

Ok, I get it now. Good idea. I recoded your patch so the comparison is done in an existing function (fcm_check_logoimage) and the corrected dimensions are calculated there. I'll add it in the next beta release (0.6.0 beta 8).

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum