Dear Fred,
You missed the "width" option: run("Size...", " width=256 height=256 depth=1
constrain average interpolation=None");
Best wishes
Kees
-----Original Message-----
From: Fred Damen <[email protected]>
Sent: 31 August 2024 05:36
To: [email protected]
Subject: Size... and a question
***CAUTION:*** This email was sent from an EXTERNAL source. Think before
clicking links or opening attachments.
Greetings,
If you run
run("Size...", "height=256 depth=1 constrain average interpolation=None"); from
a macro the image will resize to what was previously resized using the GUI
Image/Adjust/Size... and not what was specified in the macro command. I assume
this would be the parameters if the height is to be set and the aspect ratio of
the image being resize is maintained.
newImage("Untitled", "32-bit noise", 128, 128, 1); Image/Adjust/Size...
Height->1024 newImage("Untitled", "32-bit noise", 128, 128, 1); run("Size...",
"height=256 depth=1 constrain average interpolation=None");
Bonus question:
Is there an macro equivalent of setting ImagePlus.changes to false? Or a way of
closing an image without the save/dont save popup?
Thanks,
Fred
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html