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

Add support for true streaming #225

Merged
merged 3 commits into from
Apr 29, 2020
Merged

Add support for true streaming #225

merged 3 commits into from
Apr 29, 2020

Conversation

kleisauke
Copy link
Member

This PR adds support for true streaming, a new feature that has landed in libvips 8.9.
https://libvips.github.io/libvips/2019/11/29/True-streaming-for-libvips.html

At the time of writing the savers magicksave (&output=gif) and tiffsave (&output=tiff) has yet to be reworked for the new source/target API (see libvips/libvips#1541). There's a good chance that within libvips 8.10 this has been reworked.

In order to maintain backward compatibility, this feature is therefore conditionally excluded with:

#if VIPS_VERSION_AT_LEAST(8, 10, 0)

However, it can be tested earlier by compiling the master branch of libvips.

- Bump Travis libvips to 8.9.1.
- Simplify unit tests.
- Add debug mode within the weserv module.
- Regenerate expected fixtures.
- Update clang-tidy configuration file.
- Fix small memory leak in thumbnail.
- Add pagePrimary to output=json.
- Update third-party modules.
- Bump Travis libvips to 8.9.2.
- Incorporate commit libvips/libvips@6f0548d.
- Reduce nesting in query.cpp.
@kleisauke kleisauke added the enhancement New feature or request label Apr 29, 2020
@codecov
Copy link

codecov bot commented Apr 29, 2020

Codecov Report

Merging #225 into 5.x will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##               5.x      #225   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           50        56    +6     
  Lines         1509      1585   +76     
=========================================
+ Hits          1509      1585   +76     
Impacted Files Coverage Δ
include/weserv/api_manager.h 100.00% <ø> (ø)
src/api/parsers/color.h 100.00% <ø> (ø)
src/api/parsers/query_holder.h 100.00% <ø> (ø)
src/api/processors/gamma.cpp 100.00% <ø> (ø)
src/api/processors/thumbnail.h 100.00% <ø> (ø)
include/weserv/io/source_interface.h 100.00% <100.00%> (ø)
include/weserv/io/target_interface.h 100.00% <100.00%> (ø)
src/api/api_manager_impl.cpp 100.00% <100.00%> (ø)
src/api/io/source.cpp 100.00% <100.00%> (ø)
src/api/io/source.h 100.00% <100.00%> (ø)
... and 29 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4400ed1...dcc1e91. Read the comment docs.

@kleisauke kleisauke merged commit 377de1e into 5.x Apr 29, 2020
@kleisauke kleisauke deleted the true-streaming branch October 1, 2020 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

1 participant