Skip to content

Commit 7f4a97c

Browse files
authored
Merge pull request #242 from acaloiaro/documentation-url-updates
Libvips documentation URL and README copy updates
2 parents 3a892f2 + 70672d3 commit 7f4a97c

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ bimg was designed to be a small and efficient library supporting a common set of
66

77
bimg is able to output images as JPEG, PNG and WEBP formats, including transparent conversion across them.
88

9-
bimg uses internally libvips, a powerful library written in C for image processing which requires a [low memory footprint](http://www.vips.ecs.soton.ac.uk/index.php?title=Speed_and_Memory_Use)
9+
bimg uses internally libvips, a powerful library written in C for image processing which requires a [low memory footprint](https://github.com/jcupitt/libvips/wiki/Speed_and_Memory_Use)
1010
and it's typically 4x faster than using the quickest ImageMagick and GraphicsMagick settings or Go native `image` package, and in some cases it's even 8x faster processing JPEG images.
1111

1212
If you're looking for an HTTP based image processing solution, see [imaginary](https://github.com/h2non/imaginary).
@@ -77,10 +77,10 @@ The [install script](https://github.com/h2non/bimg/blob/master/preinstall.sh) re
7777

7878
## Performance
7979

80-
libvips is probably the faster open source solution for image processing.
80+
libvips is probably the fastest open source solution for image processing.
8181
Here you can see some performance test comparisons for multiple scenarios:
8282

83-
- [libvips speed and memory usage](http://www.vips.ecs.soton.ac.uk/index.php?title=Speed_and_Memory_Use)
83+
- [libvips speed and memory usage](https://github.com/jcupitt/libvips/wiki/Speed-and-memory-use)
8484

8585
## Benchmark
8686

image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func (i *Image) Metadata() (ImageMetadata, error) {
203203
}
204204

205205
// Interpretation gets the image interpretation type.
206-
// See: http://www.vips.ecs.soton.ac.uk/supported/current/doc/html/libvips/VipsImage.html#VipsInterpretation
206+
// See: https://jcupitt.github.io/libvips/API/current/VipsImage.html#VipsInterpretation
207207
func (i *Image) Interpretation() (Interpretation, error) {
208208
return ImageInterpretation(i.buffer)
209209
}

metadata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func ColourspaceIsSupported(buf []byte) (bool, error) {
4343
}
4444

4545
// ImageInterpretation returns the image interpretation type.
46-
// See: http://www.vips.ecs.soton.ac.uk/supported/current/doc/html/libvips/VipsImage.html#VipsInterpretation
46+
// See: https://jcupitt.github.io/libvips/API/current/VipsImage.html#VipsInterpretation
4747
func ImageInterpretation(buf []byte) (Interpretation, error) {
4848
return vipsInterpretationBuffer(buf)
4949
}

options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const (
8989
)
9090

9191
// Interpretation represents the image interpretation type.
92-
// See: http://www.vips.ecs.soton.ac.uk/supported/current/doc/html/libvips/VipsImage.html#VipsInterpretation
92+
// See: https://jcupitt.github.io/libvips/API/current/VipsImage.html#VipsInterpretation
9393
type Interpretation int
9494

9595
const (
@@ -119,7 +119,7 @@ const (
119119

120120
// Extend represents the image extend mode, used when the edges
121121
// of an image are extended, you can specify how you want the extension done.
122-
// See: http://www.vips.ecs.soton.ac.uk/supported/8.4/doc/html/libvips/libvips-conversion.html#VIPS-EXTEND-BACKGROUND:CAPS
122+
// See: https://jcupitt.github.io/libvips/API/current/libvips-conversion.html#VIPS-EXTEND-BACKGROUND:CAPS
123123
type Extend int
124124

125125
const (

vips.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ func vipsReduce(input *C.VipsImage, xshrink float64, yshrink float64) (*C.VipsIm
572572
func vipsEmbed(input *C.VipsImage, left, top, width, height int, extend Extend, background Color) (*C.VipsImage, error) {
573573
var image *C.VipsImage
574574

575-
// Max extend value, see: http://www.vips.ecs.soton.ac.uk/supported/8.4/doc/html/libvips/libvips-conversion.html#VipsExtend
575+
// Max extend value, see: https://jcupitt.github.io/libvips/API/current/libvips-conversion.html#VipsExtend
576576
if extend > 5 {
577577
extend = ExtendBackground
578578
}

0 commit comments

Comments
 (0)