Comments (4)
Alternative smart crop in libvips:
https://gist.github.com/jcupitt/c2792a9b22e4e2544147
It's a slightly different algorithm. Rather than attempting to find the interesting part of an image, all it does is trim the most boring parts (found by estimating image entropy) off the longest axis until the image is square.
The idea is that the most common use for smartcrop is to square up images so that you can display a large number of images with different aspect ratios in a nice grid. This is a much simpler problem than trying to find the centre of interest in a picture.
from bimg.
As of libvips version 8.5.0, there is a "smart crop" feature available. It's based on Sharp's smartcrop, which I think is the same as linked earlier here in the Issue.
from bimg.
should be closed by #145
from bimg.
Smartcrop feature has been shipped in v1.0.8
. Thank you @greut!
from bimg.
Related Issues (20)
- Issue with Image DPI quality
- Support concatenation of two images: vips_join()
- VIPS-WARNING and corrupted image
- Is it possible to use bimg on Windows? HOT 10
- How to use package with clang compiler? HOT 1
- go build fails for vips-8.14.1 HOT 3
- Q: libvips/libvips? jcupitt/libvips?
- Memory leak in Process(), Convert() HOT 3
- Does bimg support animated WebP resizing?
- Are custom image rotation angles possible?
- Is there a way to deskew an image?
- Is there a plan for a new stable tag? HOT 1
- runtime: program exceeds 10000-thread limit fatal error: thread exhaustion HOT 1
- build fails when i add the package to go.mod HOT 2
- Factor calculate mistake
- Basic setup for Prometheus metrics
- Build fails with latest vips library HOT 8
- convert gif to webp
- does bimg have any mem leaks? HOT 1
- Panic Error on Exif Data for Software
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bimg.