Skip to content

Commit c889be6

Browse files
committed
Merge branch 'master' of github.com:jcupitt/nip2
Conflicts: ChangeLog src/util.c
2 parents 884109a + 2bb3de9 commit c889be6

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
<<<<<<< HEAD
12
started 7.38.1 18/1/14
23
- add scRGB to list of known Types
4+
=======
5+
started 7.38.1 20/1/14
6+
- fix scRGB display
7+
>>>>>>> 2bb3de9e64a99361e6363219f301761e4b2aa7d6
38

49
started 7.38.0 18/1/14
510
- version bump

TODO

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
- columns can move about on load in large workspaces
32

43
- hide tabs if only one tab in window, though we'd need to allow tab drop

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Process this file with autoconf to produce a configure script.
22

3-
AC_INIT([nip2], [7.38.0])
3+
AC_INIT([nip2], [7.38.1])
44
AM_INIT_AUTOMAKE([-Wall])
55

66
# foreign stops complaints about a missing README (we use README.md instead)
@@ -18,7 +18,7 @@ dnl
1818

1919
m4_define([nip_major_version], [7])
2020
m4_define([nip_minor_version], [38])
21-
m4_define([nip_micro_version], [0])
21+
m4_define([nip_micro_version], [1])
2222
m4_define([nip_version],
2323
[nip_major_version.nip_minor_version.nip_micro_version])
2424

src/conversion.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ conversion_make_repaint( Conversion *conv, IMAGE *in )
610610
(in->Type == IM_TYPE_LCH ||
611611
in->Type == IM_TYPE_YXY ||
612612
in->Type == IM_TYPE_UCS ||
613+
in->Type == VIPS_INTERPRETATION_scRGB ||
613614
in->Type == IM_TYPE_LAB ||
614615
in->Type == IM_TYPE_XYZ) ) {
615616
IMAGE *t[2];
@@ -641,6 +642,18 @@ conversion_make_repaint( Conversion *conv, IMAGE *in )
641642
in = t[1];
642643
}
643644

645+
if( in->Type == VIPS_INTERPRETATION_scRGB ) {
646+
VipsImage *x;
647+
648+
if( vips_scRGB2sRGB( in, &x, NULL ) ) {
649+
im_close( out );
650+
return( NULL );
651+
}
652+
vips_object_local( out, x );
653+
654+
in = x;
655+
}
656+
644657
if( in->Type == IM_TYPE_YXY ) {
645658
if( im_open_local_array( out, t, 2, "conv-1", "p" ) ||
646659
im_clip2fmt( in, t[0], IM_BANDFMT_FLOAT ) ||

src/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ static const char *type_names[] = {
13151315
"RGB16", /* IM_TYPE_RGB16 25 */
13161316
"GREY16", /* IM_TYPE_GREY16 26 */
13171317
"Array", /* VIPS_INTERPRETATION_ARRAY = 27 */
1318-
"scRGB" /* VIPS_INTERPRETATION_scRGB 28 */
1318+
"scRGB" /* VIPS_INTERPRETATION_scRGB = 28 */
13191319
};
13201320
static const int ntype_names = IM_NUMBER( type_names );
13211321

0 commit comments

Comments
 (0)