forked from guardian/grid
-
Notifications
You must be signed in to change notification settings - Fork 0
Libvips cropping #16
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
Draft
tonytw1
wants to merge
56
commits into
libvips
Choose a base branch
from
libvips-cropping
base: libvips
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Libvips cropping #16
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0839933 to
e24ec6d
Compare
e24ec6d to
ced0d9e
Compare
ced0d9e to
96bd437
Compare
96bd437 to
0a3d157
Compare
c8f8217 to
c96ff82
Compare
0a3d157 to
c23e630
Compare
c23e630 to
dba943e
Compare
d296629 to
25c0148
Compare
5997767 to
7ced3c4
Compare
7ced3c4 to
3044f66
Compare
3d0a1be to
afcdb8a
Compare
c916363 to
dcd3779
Compare
…opject with no Futures in it. Grouping the vips images operations in 1 tight block with no eventual side effects.
…it's higher quality for CDN resizer origin.
TODO restore this decision.
TODO restore this decision.
…n loaded. So that hasAlpha and colour depth can possibly come from the actual master crop image.
…can be made at a more implementation specific level.
…he number of bands in the image. image_get_typeof palette as an indication that the image had a palette is another good signal for isGraphic. format and bands are likely to be required to infer colour depth.
…; leaving more RAM for off heap VIPS operations. Cropped 20% heap.
79d79de to
8454725
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this change?
Cropping is implemented using libvips with the image processing operations happening in memory rather than forking out to shell commands.
isGraphicdecision for crop type is inferred from the number of bands in the source image.Do not know how to implement this colour depth query in libvibs.
Seems to yield noticeably more predictable timings for large TIFF files.
Can crop these test images while running in a container with 2Gb of memory.
Time for
"POST /cropsto return after making a fullset of 5:3 full frame crops of various test images.How should a reviewer test this change?
How can success be measured?
Who should look at this?
Tested? Documented?