-
-
Notifications
You must be signed in to change notification settings - Fork 699
dzsave from cli can't store multiple dzi files in the same directory #3007
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
Comments
Hi @OyvindLGjesdal, Oooof that's bad, I'll have a look. I think this is a side-effect of the new dzsave-to-a-pipe feature. |
It's working for me:
Could it be the libgsf version you're using? I'm on 1.14.47. |
There is a big difference with the version number of libgsf: Replicating your example:
|
I think you'll need to update your libgsf to fix this. |
Thank you for the swift response and check @jcupitt. Understandable that things which are broken in old dependencies can't and won't be fixed. I think maybe we stay at |
Don't replace the library in https://github.com/jcupitt/docker-builds/blob/master/libvips-centos7.9/Dockerfile I see:
You can see it's using the custom libgsf 1.14.45 in |
why is this closed ? @jcupitt isn't possible to fix this ? |
Hi @remicollet, libvips 8.12 had a complicated workaround for old and broken libgsf. The new save-dz-to-a-pipe feature makes this difficult to support now. It should work with libgsf-1.14.27, from 2013. Are there many users still on this old version? |
See https://rpms.remirepo.net/rpmphp/zoom.php?rpm=libgsf So RHEL/CentOS 7 (and other clones) are still using 1.14.26 EL-7 is 8 years old and have enter "Maintaince support phase 2" (only critical issues) I'm used to encourage users to use a modern distro for modern features (EL-8 or even EL-9), but it seems lot of users are still using old EL-7 (for bad / strange reasons) Example for download statistics for vips 8.13 (>6k download):
|
Eeek! OK, I'll see if there's some way we can hack support back in. |
It looks like this was fixed in libgsf with commit GNOME/libgsf@dfd8750 (version 1.14.29), upstream bug report: |
Ah not 1.14.27 then, thanks Kleis. Yes, the workaround was to always write to a subdirectory, then rename all the files in a second pass outside libgsf. This is obviously tricky when writing to a pipe, since you can't do a second pass. |
Another option is to implement |
That's a good idea! Let's always use our own stdio writer and reduce the number of cases we need to test. |
I just opened PR #3017 for this. |
... and merged. That's a very neat solution Kleis. |
Questions, enhancements, tips, etc.
Please use libvips discussions for other topics.
https://github.com/libvips/libvips/discussions
Bug report
Describe the bug
When upgrading from 8.12 to 8.13 I noticed our process which generates multiple dzi to the same folder (dzi) had failed creating dzi files.
To Reproduce
When running `
or
it returns
or
and stops
Expected behavior
I would expect
dzsave
to still be able to write out .dzi files and subfolders to a folder that already exists, and keep the behaviour from 8.12.Actual behavior
See error message above.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Additional context

Normal folder structure for our output, which works for the previous version:
I looked for a workaround looking at the options in the cli, but couldn't find a way to make the cli behave/create the folder structure that we are currently using.
Thanks for the awesome work on libvips!
The text was updated successfully, but these errors were encountered: