Gimp destroyes image file when trying to save as .tif with jpeg compression

Bug #884145 reported by Jesusfreak
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Gimp
Fix Released
Medium
gimp (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

To reproduce the bug follow these steps

1. Start Gimp and open the example-before.tif with LZW compression attached below
2. Go to Image -> Mode -> Indexed, choose "Generate optimum palette -> Maximum number of colors", change the value from 256 to 16 and hit "Convert" button
3. Go to File -> Save, replace the file and change compression to jpeg
4. Now a message appears saying:
TIFF image Message
PhotometricInterpretation 3 not allowed for JPEG
TIFF image Message
Failed a scanline write on row 0
GIMP Message
Saving '/home/myname/example-after.tif' failed:
TIFF image plug-in could not save image
5. The file with the image on the disc now has a size of 8 bytes and cannot be opened or viewed anymore (see the example-after.tif attached)

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gimp 2.6.11-2ubuntu4
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Mon Oct 31 10:46:37 2011
EcryptfsInUse: Yes
InstallationMedia: Xubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101008.1)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gimp
UpgradeStatus: Upgraded to oneiric on 2011-10-14 (16 days ago)

Revision history for this message
Jesusfreak (launchpad-bikelab) wrote :
Revision history for this message
Jesusfreak (launchpad-bikelab) wrote :
Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

I have tested this example and can confirm this behaviour. I'll make an upstream bug report. Thank you for reporting this bug to Ubuntu!

Changed in gimp (Ubuntu):
status: New → Confirmed
Changed in gimp:
importance: Unknown → Medium
status: Unknown → New
Changed in gimp:
status: New → Incomplete
Revision history for this message
Jesusfreak (launchpad-bikelab) wrote :

What makes this bug incomplete?

Changed in gimp:
status: Incomplete → New
Changed in gimp:
status: New → Confirmed
Changed in gimp:
status: Confirmed → Fix Released
Revision history for this message
madbiologist (me-again) wrote :

Patch from upstream bug report is in Utopic.

Changed in gimp (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.