Package: xzgv
Version: 0.9.2-2+b1
Severity: normal
Tags: upstream patch

When using xzgv with --exif-orient, not all orientations are handled
correctly.

Test Images can be found here:
https://github.com/recurser/exif-orientation-examples

Rotation 2 and 3 are not currently not rotated correctly by xzgv.

The exif rotation is translated into xzgv's internal representation in
backend_get_orientation_from_file(), here:
https://sourceforge.net/p/xzgv/git/ci/master/tree/src/backend.c#l215

  static const ExifShort xzgv_orient[]={0,0,1,3,2,7,4,6,5};

The proposed fix is to swap the values at index 2 and 3, giving:

  static const ExifShort xzgv_orient[]={0,0,3,1,2,7,4,6,5};


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (x86_64)

Kernel: Linux 5.19.0 (SMP w/24 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages xzgv depends on:
ii  libc6                2.36-5
ii  libexif12            0.6.22-3
ii  libgdk-pixbuf-2.0-0  2.42.10+dfsg-1
ii  libglib2.0-0         2.74.2-1
ii  libgtk2.0-0          2.24.32-3
ii  libx11-6             2:1.8.1-2

xzgv recommends no packages.

xzgv suggests no packages.

-- no debconf information

Reply via email to