Re: Auto Scale Image View to 100%

Posted by Albert Cardona on
URL: http://imagej.273.s1.nabble.com/Auto-Scale-Image-View-to-100-tp3693384p3693385.html

Cochella Chris wrote:
> Hi All,
>
> Is there a way to give imagej a parameter for each image loaded via a
> URL so that it loads and scales the image for 100% view?
>
>
> We have images larger than the current window size and would like them
> to load so that the complete image is viewable on first load.


Hi Chris,

You could run the "Zoom Exact" plugin from my website on each opened image.
Something like (in javascript):

var imp = IJ.openImage("http://path/to/image.tif");
imp.show();
IJ.run(imp, "Zoom Exact", "zoom=100");


The Zoom exact plugin lets you set 35, 134, whatever magnification you
want, in percent, while keeping the size of the canvas limited to the
screen dimensions.

The plugin is here:
http://albert.rierol.net/software.html#ImageJ%20plugins:%20miscellaneous

Albert

--
Albert Cardona
http://albert.rierol.net