"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libvips/conversion/autorot.c" between
vips-8.10.6.tar.gz and vips-8.11.0.tar.gz

About: VIPS is a free image processing system (see also the GUI nip2).

autorot.c  (vips-8.10.6):autorot.c  (vips-8.11.0)
skipping to change at line 12 skipping to change at line 12
* *
* 19/10/14 * 19/10/14
* - from jpegload * - from jpegload
* 12/4/16 * 12/4/16
* - test and remove orientation from every ifd * - test and remove orientation from every ifd
* 6/10/18 * 6/10/18
* - don't remove orientation if it's one of the cases we don't handle * - don't remove orientation if it's one of the cases we don't handle
* 10/5/20 * 10/5/20
* - handle mirrored images * - handle mirrored images
* - deprecate vips_autorot_get_angle() * - deprecate vips_autorot_get_angle()
* 24/10/20
* - only remove main image orientation, since we don't rotate the
* embedded thumbnail
*/ */
/* /*
This file is part of VIPS. This file is part of VIPS.
VIPS is free software; you can redistribute it and/or modify VIPS is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2 of the License, or the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
skipping to change at line 50 skipping to change at line 53
/* /*
#define DEBUG #define DEBUG
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif /*HAVE_CONFIG_H*/ #endif /*HAVE_CONFIG_H*/
#include <vips/intl.h> #include <vips/intl.h>
#include <string.h>
#include <vips/vips.h> #include <vips/vips.h>
#include "pconversion.h" #include "pconversion.h"
typedef struct _VipsAutorot { typedef struct _VipsAutorot {
VipsConversion parent_instance; VipsConversion parent_instance;
VipsImage *in; VipsImage *in;
VipsAngle angle; VipsAngle angle;
skipping to change at line 72 skipping to change at line 77
} VipsAutorot; } VipsAutorot;
typedef VipsConversionClass VipsAutorotClass; typedef VipsConversionClass VipsAutorotClass;
G_DEFINE_TYPE( VipsAutorot, vips_autorot, VIPS_TYPE_CONVERSION ); G_DEFINE_TYPE( VipsAutorot, vips_autorot, VIPS_TYPE_CONVERSION );
static void * static void *
vips_autorot_remove_angle_sub( VipsImage *image, vips_autorot_remove_angle_sub( VipsImage *image,
const char *field, GValue *value, void *my_data ) const char *field, GValue *value, void *my_data )
{ {
if( vips_isprefix( "exif-", field ) && if( strcmp( field, "exif-ifd0-Orientation" ) == 0 ) {
vips_ispostfix( field, "-Orientation" ) ) {
#ifdef DEBUG #ifdef DEBUG
printf( "vips_autorot_remove_angle: %s\n", field ); printf( "vips_autorot_remove_angle: %s\n", field );
#endif /*DEBUG*/ #endif /*DEBUG*/
(void) vips_image_remove( image, field ); (void) vips_image_remove( image, field );
} }
return( NULL ); return( NULL );
} }
 End of changes. 3 change blocks. 
2 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)