// GIF Videos to Slack // Adjust Contrast Settings before running // run("Enhance Contrast", "saturated=0.35"); Stack.getDimensions(width, height, channels, slices, frames); ds_space=4; // Spatial Downsample Factor ds_time=5; // Temporal Downsample Factor // New Dimensions dsw = floor(width/ds_space); dsh = floor(height/ds_space); dsf = floor(frames/ds_time); // Resize run("Size...", "width=&dsw height=&dsh depth=&dsf constrain average interpolation=Bilinear"); run("Animation Options...", "speed=200 first=1 last=&dsf"); //run("Animation Options...", "speed=500");