Image Thumbnail set max filesize

Hi,

Is it possible to set a maximum filesize in a thombnail configuration for autogenerating a thumbnail?
We use images on our website with a maximum filesize and max resolution to speed things up.

Generating the resolution is no problem.