more dbg output
This commit is contained in:
parent
7e5312f626
commit
5fff62576e
@ -640,6 +640,13 @@ vips_icc_load_profile_blob( VipsBlob *blob,
|
|||||||
size_t size;
|
size_t size;
|
||||||
cmsHPROFILE profile;
|
cmsHPROFILE profile;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf( "loading %s profile, intent %s, from blob %p\n",
|
||||||
|
direction == LCMS_USED_AS_INPUT ? _( "input" ) : _( "output" ),
|
||||||
|
vips_enum_nick( VIPS_TYPE_INTENT, intent ),
|
||||||
|
blob );
|
||||||
|
#endif /*DEBUG*/
|
||||||
|
|
||||||
data = vips_blob_get( blob, &size );
|
data = vips_blob_get( blob, &size );
|
||||||
if( !(profile = cmsOpenProfileFromMem( data, size )) ) {
|
if( !(profile = cmsOpenProfileFromMem( data, size )) ) {
|
||||||
g_warning( "%s", _( "corrupt profile" ) );
|
g_warning( "%s", _( "corrupt profile" ) );
|
||||||
@ -647,7 +654,7 @@ vips_icc_load_profile_blob( VipsBlob *blob,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
vips_icc_print_profile( "from blob", profile );
|
vips_icc_print_profile( "loaded from blob to make", profile );
|
||||||
#endif /*DEBUG*/
|
#endif /*DEBUG*/
|
||||||
|
|
||||||
if( image &&
|
if( image &&
|
||||||
@ -669,10 +676,10 @@ vips_icc_load_profile_blob( VipsBlob *blob,
|
|||||||
|
|
||||||
if( !cmsIsIntentSupported( profile, intent, direction ) ) {
|
if( !cmsIsIntentSupported( profile, intent, direction ) ) {
|
||||||
VIPS_FREEF( cmsCloseProfile, profile );
|
VIPS_FREEF( cmsCloseProfile, profile );
|
||||||
g_warning( _( "%s profile does not support %s intent" ),
|
g_warning( _( "profile does not support %s %s intent" ),
|
||||||
|
vips_enum_nick( VIPS_TYPE_INTENT, intent ),
|
||||||
direction == LCMS_USED_AS_INPUT ?
|
direction == LCMS_USED_AS_INPUT ?
|
||||||
_( "input" ) : _( "output" ),
|
_( "input" ) : _( "output" ) );
|
||||||
vips_enum_nick( VIPS_TYPE_INTENT, intent ) );
|
|
||||||
return( NULL );
|
return( NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user