Skip to content

Instantly share code, notes, and snippets.

@bdunnette
Created June 4, 2014 16:30
Show Gist options
  • Save bdunnette/9c576c98114bb30df996 to your computer and use it in GitHub Desktop.
Save bdunnette/9c576c98114bb30df996 to your computer and use it in GitHub Desktop.
#!/bin/bash
for s in *.svs
do
echo "$s"
#To generate a reasonable-sized JPEG, we'll export level 1 of the SVS file (level 0 = full magnification, which many image processing programs don't handle well)
time vips jpegsave $s[level=1] $s.jpeg
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment