After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 53278 - TGA's created in gimp need to flipped vertically
TGA's created in gimp need to flipped vertically
Status: VERIFIED FIXED
Product: GIMP
Classification: Other
Component: Plugins
1.x
Other Linux
: Low minor
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2001-04-17 04:43 UTC by kgirard
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
TGA patch from 1.2 CVS (3.66 KB, patch)
2002-01-24 10:29 UTC, Nick Lamb
none Details | Review

Description kgirard 2001-04-17 04:43:21 UTC
Overview Description: 

TGA's created in the GIMP need to flipped horizontally and rotated 180
degrees .....at least according to OpenIL, and Adobe Photoshop and my own
TGA loader

Steps to Reproduce:

1) Save an Image as a TGA file
2) Load in OpenGL, OpenIl, or Adobe Photoshop.. etc etc

Actual Results:

Flipped and rotated image

Expected Results:

Normal Image



Additional Information


I was working on a project on mine using OpenGL and a bunch of TGA's that I
have created in The GIMP and I noticed that the textures I was using were
backwards and upside down.

At first I thought it was my image loading code, so I switched to OpenIL,
that didn't work, so I switch to another TGA loader and that didn't work.
So I converted all my imags to PNG's and everything was peachy.  Alright I
knew it wasn't my code any more so I decided to find the bug...I created a
bunch a bunch of TGA's and rebooted into Windows and loaded up my TGA's
that I created in GIMP in Adobe and ...sure enough they were upside down
and backwards.. so I rotated and flipped them rebooted and loaded them into
my project and everything was fine.  I tried this with different sized
images, different colour depths...  every time the same.

The weird part is that the GIMP loaded the images that I altered in Adobe
with no problems...... so it's just the saving that has a bug...

Kyle
Comment 1 Raphaël Quinet 2001-04-26 18:12:36 UTC
Re-assigning all Gimp bugs to default component owner (Gimp bugs list)
Comment 2 Raphaël Quinet 2001-06-19 15:40:18 UTC
I cannot confirm this bug, because I cannot reproduce the problem.
I created an image with the Gimp, typed some text in it (it is very
easy to see when the text has been flipped) and saved it as TGA
(without RLE compression).  I tried to re-load it in the Gimp, and
everything looks OK.  I tried to re-load it in "xv", and everything
looks OK as well.  I tried to convert the image with "tgatoppm" and
the resulting PPM image looked OK as well.

I got the same results under Linux (x86) and Solaris (sparc), both
running the Gimp 1.2.1.  I do not have Windows or Photoshop right now
so I cannot test the image with other programs, but I would be
surprised to any difference.

If this problem is real, then I suggest that you attach three files
to this bug report, so that we can investigate the problem:
- the original image saved in XCF or PNG format,
- the TGA image saved by the Gimp and displayed incorrectly in PS,
- the TGA image rotated, flipped and re-saved by PS.
You could also add a screenshot of the PS window displaying the 2nd
image incorrectly.
Comment 3 Nick Lamb 2001-06-20 18:10:18 UTC
As Raphael has realised, these TGAs are valid, but lots of software is
too simple minded to check the header structures.

Apparently that includes Adobe Photoshop. Well, what a surprise.

I can probably re-wire the Gimp TGA plug-in to create TGAs with a
different orientation at some point to work around this bug, but I do
not think this is a high priority for us.

Reporter, change your software to detect the orientation bits in the
TGA header and flip the image as required.
Comment 4 Nick Lamb 2002-01-24 07:46:57 UTC
A patch for this bug has been applied to 1.2 CVS based on a submission
to Gimp-devel from an interested user, Russell Valentine
<russ_allegro@yahoo.com>. Gimp can now (by default does) create images
with an origin at the bottom right. An equivalent patch needs to be
applied in HEAD.

The original summary is misleading BTW, the reporter did two
operations (Hflip + rotate) which are equivalent to one (Vflip).
Comment 5 Raphaël Quinet 2002-01-24 08:05:11 UTC
Can someone apply the appropriate patch to HEAD and then mark this
bug as RESOLVED FIXED?
Comment 6 Nick Lamb 2002-01-24 10:29:40 UTC
Created attachment 6496 [details] [review]
TGA patch from 1.2 CVS
Comment 7 Sven Neumann 2002-01-24 13:37:46 UTC
Applied the patch to the HEAD branch.
Comment 8 Raphaël Quinet 2002-02-12 09:35:06 UTC
Fix is part of gimp-1.2.3, which has just been released.
Bug is now CLOSED.