@@ -153,7 +153,7 @@ gboolean dt_imageio_large_thumbnail(const char *filename,
153
153
int32_t * height ,
154
154
dt_colorspaces_color_profile_type_t * color_space )
155
155
{
156
- int res = TRUE ;
156
+ int res = FALSE ;
157
157
158
158
uint8_t * buf = NULL ;
159
159
char * mime_type = NULL ;
@@ -185,7 +185,7 @@ gboolean dt_imageio_large_thumbnail(const char *filename,
185
185
goto error ;
186
186
}
187
187
188
- res = FALSE ;
188
+ res = TRUE ;
189
189
}
190
190
else
191
191
{
@@ -236,13 +236,13 @@ gboolean dt_imageio_large_thumbnail(const char *filename,
236
236
}
237
237
}
238
238
239
- res = FALSE ;
239
+ res = TRUE ;
240
240
241
241
error_gm :
242
242
if (image ) DestroyImage (image );
243
243
if (image_info ) DestroyImageInfo (image_info );
244
244
DestroyExceptionInfo (& exception );
245
- if (res ) goto error ;
245
+ if (! res ) goto error ;
246
246
#elif defined HAVE_IMAGEMAGICK
247
247
MagickWand * image = NULL ;
248
248
MagickBooleanType mret ;
@@ -287,11 +287,11 @@ gboolean dt_imageio_large_thumbnail(const char *filename,
287
287
goto error_im ;
288
288
}
289
289
290
- res = FALSE ;
290
+ res = TRUE ;
291
291
292
292
error_im :
293
293
DestroyMagickWand (image );
294
- if (res ) goto error ;
294
+ if (! res ) goto error ;
295
295
#else
296
296
dt_print (DT_DEBUG_ALWAYS ,
297
297
"[dt_imageio_large_thumbnail] error: The thumbnail image is not in "
@@ -301,7 +301,7 @@ gboolean dt_imageio_large_thumbnail(const char *filename,
301
301
#endif
302
302
}
303
303
304
- if (res )
304
+ if (! res )
305
305
{
306
306
dt_print (DT_DEBUG_ALWAYS ,
307
307
"[dt_imageio_large_thumbnail] error: Not a supported thumbnail "
@@ -706,9 +706,9 @@ gboolean dt_imageio_export(const dt_imgid_t imgid,
706
706
{
707
707
if (strcmp (format -> mime (format_params ), "x-copy" ) == 0 )
708
708
/* This is a just a copy, skip process and just export */
709
- return ( format -> write_image (format_params , filename , NULL , icc_type ,
709
+ return format -> write_image (format_params , filename , NULL , icc_type ,
710
710
icc_filename , NULL , 0 , imgid , num , total , NULL ,
711
- export_masks )) ! = 0 ;
711
+ export_masks ) = = 0 ;
712
712
else
713
713
{
714
714
const gboolean is_scaling =
@@ -1184,20 +1184,20 @@ gboolean dt_imageio_export_with_flags(const dt_imgid_t imgid,
1184
1184
const int length = dt_exif_read_blob (& exif_profile , pathname , imgid , sRGB ,
1185
1185
processed_width , processed_height , FALSE);
1186
1186
1187
- res = ( format -> write_image (format_params , filename , outbuf , icc_type ,
1187
+ res = format -> write_image (format_params , filename , outbuf , icc_type ,
1188
1188
icc_filename , exif_profile , length , imgid ,
1189
- num , total , & pipe , export_masks )) ! = 0 ;
1189
+ num , total , & pipe , export_masks ) = = 0 ;
1190
1190
1191
1191
free (exif_profile );
1192
1192
}
1193
1193
else
1194
1194
{
1195
- res = ( format -> write_image (format_params , filename , outbuf , icc_type ,
1195
+ res = format -> write_image (format_params , filename , outbuf , icc_type ,
1196
1196
icc_filename , NULL , 0 , imgid , num , total ,
1197
- & pipe , export_masks )) ! = 0 ;
1197
+ & pipe , export_masks ) = = 0 ;
1198
1198
}
1199
1199
1200
- if (res )
1200
+ if (! res )
1201
1201
goto error ;
1202
1202
1203
1203
/* now write xmp into that container, if possible */
0 commit comments