diff --git a/README.md b/README.md index 038073f93..1540a84f8 100755 --- a/README.md +++ b/README.md @@ -84,9 +84,6 @@ The _gettext_ dependency of _libvips_ [can lead](https://github.com/lovell/sharp brew link gettext --force -### Openslide tips -If you want to enable OpenSlide support, you need to initially install the openslide libraries and then recompile vips, so that openslide support is enabled. - ### Heroku [Alessandro Tagliapietra](https://github.com/alex88) maintains an [Heroku buildpack for libvips](https://github.com/alex88/heroku-buildpack-vips) and its dependencies. @@ -103,8 +100,6 @@ If you want to enable OpenSlide support, you need to initially install the opens * [gulp-sharp](https://www.npmjs.com/package/gulp-sharp) * [grunt-sharp](https://www.npmjs.com/package/grunt-sharp) - - ## Usage examples ```javascript diff --git a/preinstall.sh b/preinstall.sh index 8109abdf7..9745299d2 100755 --- a/preinstall.sh +++ b/preinstall.sh @@ -248,7 +248,6 @@ case $(uname -s) in brew install homebrew/science/vips --with-webp --with-graphicsmagick fi elif type "port" > /dev/null; then - # XXX echo "Installing libvips via MacPorts" port install vips else @@ -265,7 +264,7 @@ case $(uname -s) in # Debian 8, Ubuntu 15 if [ $enable_openslide -eq 1 ]; then echo "Installing libvips via apt-get" - apt-get install -y libvips-dev + apt-get install -y libvips-dev libgsf-1-dev else echo "Recompiling vips with openslide support" install_libvips_from_source diff --git a/src/resize.cc b/src/resize.cc index 1b7b86080..dfc7db05e 100755 --- a/src/resize.cc +++ b/src/resize.cc @@ -1029,7 +1029,7 @@ NAN_METHOD(resize) { baton->withoutAdaptiveFiltering = options->Get(NanNew("withoutAdaptiveFiltering"))->BooleanValue(); baton->withoutChromaSubsampling = options->Get(NanNew("withoutChromaSubsampling"))->BooleanValue(); baton->withMetadata = options->Get(NanNew("withMetadata"))->BooleanValue(); - // Output filename or __format for Buffer + // Output filename or __format for Buffer baton->output = *String::Utf8Value(options->Get(NanNew("output"))->ToString()); baton->tileSize = options->Get(NanNew("tileSize"))->Int32Value(); baton->tileOverlap = options->Get(NanNew("tileOverlap"))->Int32Value();