Closed claytonrothschild closed 1 year ago
Havn't looked into this but maybe it helps to move the -co before the input and output?!
Oh wait, I think it clearly says what the problem is; those options are not available when you save the output as jpeg.
compression
is available for Tiffs for example (you can use JPEG compression in a Tiff or LZW, DEFLATE, etc.; FYI: https://libvips.github.io/pyvips/enums.html#pyvips.enums.ForeignTiffCompression). The overlap
option is only available for deepzoom (.dz) image pyramids. So I would say the errors are correct.
Here is a list of the options for jpegsave (Parameters): https://libvips.github.io/pyvips/vimage.html#pyvips.Image.jpegsave Maybe you wanted "Q" for quality (-co Q=75)? The options you are using are from https://libvips.github.io/pyvips/vimage.html#pyvips.Image.dzsave
@claytonrothschild Were you able to solve the problems and generate the desired output with kubi? Should I close this?
The solution is that indeed the -co arguments fail if one is not generating an image pyramid (dzsave
) - as those arguments are specific to image pyramid.
Details here
So for example, this will fail:
kubi -r lbb -f nx px py ny nz pz test.jpg test_out.jpg -co overlap=0
but this will succeed no problem:
kubi -r lbb -f nx px py ny nz pz test.jpg test_out.dz -co overlap=0
We can close this!
Great library, thank you.
When I pass co arguments on linux and mac, Pyvips fails. Mac and linux.
Any tips greatly appreciated.
kubi -r lbb -f nx px py ny nz pz test.jpg test_out.jpg -co overlap=0
kubi -r lbb -f nx px py ny nz pz test.jpg test_out.jpg -co jpg