Kleis Auke Wolthuizen
0337c09700
Cleanup gettext handling ( #2695 )
...
Use GLib's i18n support instead of copying and pasting that
logic into its own header. This deprecates the vips/intl.h
header in favour of glib/gi18n.h.
2022-02-27 15:27:28 +00:00
Corentin Noël
69bf2be12b
Enhance the introspection support by fixing annotations ( #2657 )
...
Also refine the .metadata file
2022-02-15 10:54:40 +00:00
John Cupitt
362adae8c6
Revert "Enhance the introspection support by fixing annotations ( #2655 )" ( #2656 )
...
This reverts commit 47796dcda0
.
2022-02-15 10:08:07 +00:00
Corentin Noël
47796dcda0
Enhance the introspection support by fixing annotations ( #2655 )
...
* Ensure that double asterisk characters are only used for gtk-doc comments
This triggers warnings when parsing the files with the introspection scanner
and gtk-doc
* Enhance the introspection support by fixing annotations
Also refine the .metadata file
Co-authored-by: John Cupitt <jcupitt@gmail.com>
2022-02-15 09:54:32 +00:00
John Cupitt
e48f45187b
make RGB and sRGB synonmous
...
We had a half-baked idea that RGB could mean generic RGB space and sRGB
would mean strict sRGB interpretation.
Unfortunately, this did not work well in practice. For example,
`icc_transform("srgb")` would tag the result as RGB rather than sRGB
(the converter didn't know it was writing sRGB pixels, it just saw
conversion to RGB with an ICC profile), and then later stages would do
unnecessary icc_imports, or worse, fail.
This patch makes RGB and sRGB strict synonyms. If you want to treat an
RGB image as something other than sRGB, you'll need to do it by hand
with the icc_ functions.
See
https://github.com/libvips/pyvips/issues/144
46212e92b1 (r34904985)
https://github.com/libvips/libvips/issues/1494
2019-12-22 11:40:09 +00:00
John Cupitt
d2a9a20a78
fix thumbnail regression with cmyk in and out
...
56d98f3ef0
broke cmyk->cymk thumbnails
2019-04-23 17:09:20 +01:00
Dimitri Bouron
d87bf01fdc
Add cmyk <-> xyz default colourspace conversion
...
If no lcms2 library has been found, fallback to default
cmyk <-> xyz conversion.
Please note that it is an approximative conversion.
2019-01-11 11:48:25 +01:00
John Cupitt
074906f670
fix test suite
...
- CMYK2XYZ and back now support extra alpha bands
- test suite tests CMYK conversions
- a small bug fixed too
2018-12-28 20:53:25 +00:00
John Cupitt
c5d0ca8300
add cmyk2xyz and back
...
seems to work, still to do:
- tests
- try:
```
$ vipsthumbnail NordicsLIQUOR-SFBag_300_cmyk.JPG
(vipsthumbnail:7868): VIPS-WARNING **: 16:53:17.166: profile incompatible with image
```
see https://github.com/libvips/libvips/issues/1186
2018-12-27 17:35:35 +00:00
John Cupitt
5a48408925
fix licence comments
...
three files had the wrong licence attached in a copy-paste error
thanks kadt!
see https://github.com/libvips/libvips/issues/1121
2018-10-05 06:06:08 +01:00
John Cupitt
de82c9e919
allow much larger reduce factors
...
sometimes you want to use lanczos etc. for everything
2017-10-09 11:48:11 +01:00
Alistair Thomas
2917c73404
Update GObject introspection annotations for libvips/colour directory
2017-09-30 19:29:17 +01:00
John Cupitt
362c7efdfc
argh reapply seq removal
2017-03-06 11:55:38 +00:00
John Cupitt
e6b20cbd0f
Revert "remove stalling"
...
This reverts commit 959f412380
.
2017-02-27 10:26:32 +00:00
John Cupitt
959f412380
remove stalling
2017-02-21 15:03:15 +00:00
John Cupitt
8626206278
better error message for colourspace
2016-10-26 09:49:12 +01:00
John Cupitt
0faf5395b2
conversion to grey16 could lock
...
a typo could cause infinite recursion during conversion
2016-06-03 16:24:21 +01:00
John Cupitt
1ae92bb15f
make optional args into bullets
...
make docs easier to read
2016-05-02 10:12:37 +01:00
John Cupitt
a42232a9a1
boilerplate for hsv colourspace
2015-06-09 10:18:30 +01:00
John Cupitt
2f060c494d
fix up translations
2015-04-24 15:03:09 +01:00
John Cupitt
a0aacad871
much better convert to greyscale
...
mix RGB channels as .2, .7, .1 in linear light
see https://github.com/jcupitt/libvips/issues/266
2015-04-17 11:33:27 +01:00
John Cupitt
bc57962ad0
oops, removed a stray "shift"
2015-02-13 12:30:51 +00:00
John Cupitt
8f7c2c7110
sort out alpha going to and from 16-bit
...
rewritten sRGB <-> scRGB so that 16-bit alpha is scaled to float 8
2015-02-12 17:50:38 +00:00
John Cupitt
244ab301f7
start final push for vips 8
2015-02-11 17:01:02 +00:00
John Cupitt
d6dbfea064
much faster RGB16 -> sRGB path
2015-02-04 16:48:25 +00:00
John Cupitt
fd9300750d
test extra band handling in dE
2014-09-24 14:52:24 +01:00
John Cupitt
891e6db8f0
Merge branch '7.40'
2014-09-09 11:21:28 +01:00
John Cupitt
d085351f0f
fix mono <-> rgb converter extra band handling
...
see
https://github.com/jcupitt/libvips/issues/172
thanks James
2014-09-09 10:07:35 +01:00
John Cupitt
6f8b5c6745
bring the rest of the API into python
2014-09-05 23:18:16 +01:00
John Cupitt
f6f7d4eeed
oops, don't treat RGB16 as sRGB in colourspace
...
we still had code to treat RGB16 inputs as sRGB even though we now have
a special set of RGB16 paths
vips copy 16bitRGB.tif x.jpg
now works
2014-05-08 14:13:40 +01:00
John Cupitt
874511470f
add source_space to vips_colourspace()
...
you can now specify the source colourspace, if you want
2014-02-03 09:33:15 +00:00
John Cupitt
cffe3bf965
pack Radiance images to and from 0-1
...
so this now works:
$ vips copy uffizi_probe.hdr x.jpg
$ eog x.jpg
$ vips copy x.jpg x.hdr
$ vips copy x.hdr x2.jpg
$ eog x2.jpg
2014-01-19 17:30:56 +00:00
John Cupitt
0aa521a09e
add GREY16 / RGB16 as colourspace source / target
2014-01-12 19:03:03 +00:00
John Cupitt
112ca9ec21
add B_W as a source / target for vips_colourspace()
2014-01-12 18:41:49 +00:00
John Cupitt
440b800e0e
add a new unbuffered seq mode
...
things like
vips copy huge.png x.v
now run with only a small line cache
2013-09-29 11:04:11 +01:00
John Cupitt
2fd2fd58f7
fix up gtk-doc
...
fix various problems:
- out of date IGNORE in doc/reference/Makefile.am
- name clashes between private .h and public
2013-06-17 20:16:20 +01:00
Benjamin Gilbert
8cc76a6ba3
Update address for Free Software Foundation
...
Also update LGPLv2.1 license text from the copy currently on the GNU
website.
2013-03-07 00:40:19 -05:00
John Cupitt
89ff89ebf8
remove sRGB2XYZ and back
...
now go via scRGB
2012-12-12 12:43:26 +00:00
John Cupitt
f3cec87f5f
enable seq for colourspace
2012-11-07 10:46:43 +00:00
John Cupitt
26d1f76469
support rgb16 as a source / dest in colourspace
...
so
vips colourspace x.v x2.v rgb16
will try to make a 16-bit sRGB image
2012-11-06 19:27:15 +00:00
John Cupitt
2ffbcb709c
16-bit sRGB -> XYZ works
2012-11-06 13:30:30 +00:00
John Cupitt
bf11e2ff55
added vips_colourspace_issupported()
2012-11-02 13:13:13 +00:00
John Cupitt
4c5dd969bc
rename colour_convert as colourspace
...
also rework im_icc_ac2rc
2012-11-01 14:59:20 +00:00