Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 224739 - media-libs/tiff-3.8.2-r3 - 'tiff2pdf -j' uses wrong colour mapping
Summary: media-libs/tiff-3.8.2-r3 - 'tiff2pdf -j' uses wrong colour mapping
Status: RESOLVED DUPLICATE of bug 145055
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Steve Arnold
URL: http://pics.mankin.org.uk/bugs/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-03 11:10 UTC by Raphael Mankin
Modified: 2008-06-08 18:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Mankin 2008-06-03 11:10:01 UTC
I ran 'tiff2pdf -j' on a TIFF file and got a mdistorted colour mapping. 'tiff2pdf -z' gets it right.

I viewed the outputs in Adobe PDF viewer.

I also tried 'tiff2pdf -ji', but that produced even weirder results.

Reproducible: Always

Steps to Reproduce:
1. tiff2pdf -j DCS_0131.tiff > new.pdf
2. tiff2pdf -z DSC_0131.tiff > new2.pdf
3.

Actual Results:  
new.pdf has distorted colours. new2.pdf is OK


I attach the input: DCS_0131.tiff
and the outputs new.pdf and new2.pdf
Comment 1 Raphael Mankin 2008-06-03 11:31:33 UTC
DSC_0131.tiff is the input file
new.pdf is the output of tiff2pdf -j
new2.pdf is the output of tiff2pdf -z
new4.pdf is the output of tiff2pdf -q 100 -j

raph@panache ~ $ equery belongs `which tiff2pdf`
[ Searching for file(s) /usr/bin/tiff2pdf in *... ]
media-libs/tiff-3.8.2-r3 (/usr/bin/tiff2pdf)
raph@panache ~ $ 



 emerge --info 
Portage 2.1.2.9 (default-linux/x86/2007.0/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.17.13 i686)
=================================================================
System uname: 2.6.17.13 i686 Pentium III (Katmai)
Gentoo Base System release 1.12.6
Timestamp of tree: Wed, 02 Apr 2008 22:33:01 +0000
app-shells/bash:     3.1_p17
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/baselayout: 1.12.6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://213.186.33.37/gentoo-distfiles/ http://213.186.33.38/gentoo-distfiles/ ftp://213.186.33.38/gentoo-distfiles/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://gentoo.imj.fr/pub/gentoo/"
LINGUAS="en he"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X X509 aac accessibility acl acpi alsa apache apache1 arts asf bash-completion berkdb bidi cairo cdparanoia cdr cdrom chroot cli cpudetection cracklib crypt css cups cvs cvsgraph dbus devfs26 devmap dga dnsdb dri dvd dvdr dvdread eds encode esd evo evolution exim exiscan exiscan-acl fam fat ffmpeg firefox fortran ftp gdbm gif gimp gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos mad midi mikmod mozilla mp3 mpeg mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime rc5 readline real realmedia reflection samba sdl session sndfile sound spamassassin spell spf spl srs ssl subversion svg tcpd tiff truetype unicode usb vncviewer vorbis widescreen win32codecs x86 xml xorg xv xvid xvmc zlib" ALSA_CARDS="usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en he" USERLAND="GNU" VIDEO_CARDS="radeon mach64 ati vesa fbdev s3"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

raph@panache ~ $ 

Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-03 15:05:16 UTC
That [URL] gives a 404. I had hoped there were some nice graphic examples there. Your systems seems quite outdated, by the way. Which version of media-libs/jpeg do you have (-j is for JPEG compression, for which media-libs/tiff uses media-libs/jpeg).
Comment 3 Raphael Mankin 2008-06-03 16:13:52 UTC
Apologies, the URL should be http://pics.mankin.org.uk/bugs/ (different server) and it does contain the images. I was specifically using jpeg compression. I started down this road because ImageMagic's 'convert' is  broken (known bug) and I have not found a work-around for it.

I have jpeg-6b-r8.
Comment 4 Steve Arnold archtester gentoo-dev 2008-06-04 07:13:21 UTC
Is this the same issue as reported in bug #145055 ?  Have you tried the work-around posted there?
Comment 5 Raphael Mankin 2008-06-08 18:33:24 UTC
In response to your query, Yes it does appear to be a duplciate of #145055. The PDF displays correctly in both Evince and in Gnome PDF viewer.

*** This bug has been marked as a duplicate of bug 145055 ***