User fa1369adab
07-06-2006 18:42:30
I would like to use MolConverter to build images (jpeg or png) that are no larger than 250 pixels in their greatest dimension, with no distortion such as squeezing width without squeezing height. I can't simply use scale, because I don't know how big the resulting image will be. I can't use w or h, because the result will be square (if I give only w) or misproportioned (if I specify both without knowing the actual aspect).
Perhaps new options maxh and maxw (which I would set to 250) in association with scale would work. The scale determines the initial size. If it exceeds either maxh or maxy, the scale is implicitly reduced until both are satisfied.
Refoyl
Perhaps new options maxh and maxw (which I would set to 250) in association with scale would work. The scale determines the initial size. If it exceeds either maxh or maxy, the scale is implicitly reduced until both are satisfied.
Refoyl