Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyvips.error.Error: no such operation dzsave #65

Closed
Frankling opened this issue Sep 20, 2018 · 8 comments
Closed

pyvips.error.Error: no such operation dzsave #65

Frankling opened this issue Sep 20, 2018 · 8 comments
Labels

Comments

@Frankling
Copy link

DEBUG:pyvips.error:Error image: no property named `dzsave'

DEBUG:pyvips.error:Error no such operation dzsave VipsOperation: class "dzsave" not found

DEBUG:pyvips.voperation:VipsOperation.call: operation_name = dzsave
DEBUG:pyvips.voperation:VipsOperation.call: string_options =
DEBUG:pyvips.error:Error no such operation dzsave VipsOperation: class "dzsave" not found

Traceback (most recent call last):
File "", line 1, in
File "/root/.local/lib/python3.5/site-packages/pyvips/vimage.py", line 799, in call_function
return pyvips.Operation.call(name, self, *args, **kwargs)
File "/root/.local/lib/python3.5/site-packages/pyvips/voperation.py", line 132, in call
op = Operation.new_from_name(operation_name)
File "/root/.local/lib/python3.5/site-packages/pyvips/voperation.py", line 60, in new_from_name
raise Error('no such operation {0}'.format(operation_name))
pyvips.error.Error: no such operation dzsave
VipsOperation: class "dzsave" not found

@Frankling Frankling changed the title can not use dzsave() function pyvips.error.Error: no such operation dzsave Sep 20, 2018
@jcupitt
Copy link
Member

jcupitt commented Sep 20, 2018

Hello @Frankling,

My guess is your libvips has been built without dzsave support. Did you build it yourself? dzsave needs libgsf, check the summary at the end of configure.

@Frankling
Copy link
Author

@jcupitt thank you, I had solved it by installing pre-required libs.
But now I have met a problem of dzsave, when the file is large, it produce the black pic.....

@jcupitt
Copy link
Member

jcupitt commented Sep 21, 2018

It shouldn't make black output. I use it on slides of 200,000 x 200,000 pixels without problems.

You need to give some more details: what kind of image, what size, what platform, what software versions, etc. etc.

@Frankling
Copy link
Author

the system detail is below:
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
########################################
vips version:
vips-8.7.0-Fri Aug 31 14:11:19 UTC 2018

########################################
svs file:
https://pan.baidu.com/s/1pcjVRIuZ-kW5yrbzPAzfag

#######################################
when the svs file size is small (1.9Mb)it can work

@jcupitt
Copy link
Member

jcupitt commented Sep 21, 2018

Sorry, I can't download your file. I tried in a couple of different browsers. Could you try another file sharing service?

Do you have openslide support enabled? Try entering:

$ vips openslideload
load file with OpenSlide
usage:
   openslideload filename out [--option-name option-value ...]
where:
   filename     - Filename to load from, input gchararray
   out          - Output image, output VipsImage
optional arguments:
   flags        - Flags for this file, output VipsForeignFlags
   memory       - Force open via memory, input gboolean
			default: false
   access       - Required access pattern for this file, input VipsAccess
			default: random
			allowed: random, sequential, sequential-unbuffered
   level        - Load this level from the file, input gint
			default: 0
			min: 0, max: 100000
   autocrop     - Crop to image bounds, input gboolean
			default: false
   fail         - Fail on first error, input gboolean
			default: false
   associated   - Load this associated image, input gchararray

If you have not enabled openslide, you can get black images from SVS sources.

@Frankling
Copy link
Author

@jcupitt
http://openslide.cs.cmu.edu/download/openslide-testdata/Aperio/JP2K-33003-1.svs

####################################

I have try command you provide,the result show below:
vips: unknown action "openslideload"

how to enable openslide

@Frankling
Copy link
Author

configure: WARNING: OpenSlide >= 3.3.0 not found; disabling virtual slide support
checking for MATIO... no

##############
but I have installed the openslide 3.4.1

@jcupitt
Copy link
Member

jcupitt commented Sep 21, 2018

You need the openslide-devel package too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants