#960882 exiftran: Exiftran corrupts image

Package:
exiftran
Source:
fbi
Description:
digital camera JPEG image transformer
Submitter:
Martin Ždila
Date:
2023-10-23 08:39:04 UTC
Severity:
normal
#960882#5
Date:
2020-05-17 20:13:56 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

Running `exiftran -a in.jpg -o out.jpg` results in corrupted picture of the
specific image. Please see the attachments.

*** End of the template - remove these template lines ***

#960882#10
Date:
2023-10-23 08:37:45 UTC
From:
To:
Dear Maintainer,

I have the stock version of package fgallery installed:

farfalle$ dpkg -l fgallery
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-============================================
ii  fgallery       1.8.2-2.1    all          static HTML+JavaScript photo album generator
farfalle$

fgallery's image processing results in images with exactly the same
corruption reported in this ticket.

fgallery has dependencies:

farfalle$ apt-cache show fgallery | grep ^Dep
Depends: libimage-exiftool-perl, libjson-perl, imagemagick, exiftran | libjpeg-turbo-progs, libjs-mootools (>= 1.4), zip | p7zip-full
farfalle$

Note there is exiftran *or* libjpeg-turbo-progs and I do not have
exiftran installed, but do have libjpeg-turbo-progs installed:

farfalle$ dpkg -l exiftran libjpeg-turbo-progs
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                Version      Architecture Description
+++-===================-============-============-====================================
un  exiftran            <none>       <none>       (no description available)
ii  libjpeg-turbo-progs 1:2.0.6-4    amd64        Programs for manipulating JPEG files
farfalle$

This makes be believe that *neither* exiftran nor libjpeg-turbo-progs
are *directly* responsible for the corruption, but rather a common
dependency of exiftran and libjpeg-turbo-progs is responsible.

Alexis