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 102910 - Add support for CMYK, Bitmap etc PSD files
Add support for CMYK, Bitmap etc PSD files
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Plugins
git master
Other All
: Normal enhancement
: Future
Assigned To: GIMP Bugs
GIMP Bugs
: 125859 311320 318843 (view as bug list)
Depends on: 448181
Blocks:
 
 
Reported: 2003-01-09 08:46 UTC by Maurits Rijk
Modified: 2008-08-09 03:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Photoshop file that should hold map of Alabama (43.24 KB, application/octet-stream)
2003-01-09 08:47 UTC, Maurits Rijk
  Details
Crash fix. (1.17 KB, patch)
2003-06-16 15:34 UTC, Adam D. Moss
committed Details | Review

Description Maurits Rijk 2003-01-09 08:46:14 UTC
The PSD plug-in cannot load attached file:

*** Unpacking overshot destination (94) buffer by 4 bytes!
*** Unpacking overshot destination (94) buffer by 1 bytes!
*** Unpacking overshot destination (94) buffer by 7 bytes!
*** Unpacking overshot destination (94) buffer by 27 bytes!
*** Unpacking overshot destination (94) buffer by 27 bytes!
*** Unpacking overshot destination (94) buffer by 36 bytes!
*** Unpacking overshot destination (94) buffer by 5 bytes!
<snip>
*** Unpacking overshot destination (74) buffer by 45 bytes!
*** Unpacking overshot destination (74) buffer by 47 bytes!
/usr/lib/gimp/1.2/plug-ins/psd: fatal error: Segmentation fault

Problem occurs both with 1.2.x and 1.3.x
Comment 1 Maurits Rijk 2003-01-09 08:47:01 UTC
Created attachment 13436 [details]
Photoshop file that should hold map of Alabama
Comment 2 Sven Neumann 2003-01-09 10:51:20 UTC
I can confirm this.
Comment 3 Sven Neumann 2003-06-16 14:28:26 UTC
The PSD plug-in crashes in seek_to_and_unpack_pixeldata(). Tested with
gimp-1.3.15.
Comment 4 Adam D. Moss 2003-06-16 15:34:36 UTC
Created attachment 17555 [details] [review]
Crash fix.
Comment 5 Adam D. Moss 2003-06-16 15:40:54 UTC
The attached fix defensively avoids the crash.  (It doesn't result in
a correctly-loaded image -- but it does avoid the crash.)

I'll check in something like this to 1.2 now.
Comment 6 Adam D. Moss 2003-06-16 16:11:26 UTC
Okay, fixes for the crash checked into 1.2 and HEAD.  If someone could
verify HEAD that'd be great (because I can't).
Comment 7 Sven Neumann 2003-06-16 16:43:31 UTC
HEAD doesn't crash any longer but spits lots of output to the console
(*** Unpacking overshot destination (74) buffer by x bytes!) and shows
some garbled image.

Is that a broken PSD file that cannot be loaded or is there still a
problem in the plug-in code?
Comment 8 Adam D. Moss 2003-06-16 17:01:26 UTC
> HEAD doesn't crash any longer but spits lots of output to the console
> (*** Unpacking overshot destination (74) buffer by x bytes!) and shows
> some garbled image.

That's expected in this case (though obviously not good).

> Is that a broken PSD file that cannot be loaded or is there still a
> problem in the plug-in code?

It's not clear to me whether it's a broken file or not (don't have
time to analyse, sorry).
Comment 9 Maurits Rijk 2003-06-16 19:30:03 UTC
I'm not 100 % sure if this file is ok, but both Paint Shop Pro (iirc)
and certainly PhotoShop can load the file and disblay a correct image.
I'll try to get more files from where this one came from and see if
they all give the same result.
Comment 10 Maurits Rijk 2003-10-22 15:32:00 UTC
I tried to load the file with Paint Shop Pro and it shows a garbled
image as well. Let's just forget about that image, because maybe it's
corrupt after all.

However, I found another image
(http://www.mapresources.com/download/?userID=6634.1066473969 the map
of Africa) that I can't load as well. This time Gimp politely refuses
with:

"Error: Can't convert PSD mode to GIMP base imagetype"
Comment 11 Maurits Rijk 2003-10-22 17:53:13 UTC
Some more info. According to the PS spec the following modes exist:
Bitmap (0), Grayscale (1), Indexed (2), RGB (3), CMYK (4),
Multichannel (7), Duotone (8) and Lab (9). The psd plug-in currently
only supports Grayscale, Indexed and RGB.

The file in
http://www.mapresources.com/download/?userID=6634.1066473969 is of
type CMYK, and thus not supported.
Comment 12 Michael Natterer 2004-02-13 23:35:18 UTC
Adding new image types to the PSD plug-in is IMHO
clearly an enhancment.
Comment 13 Dave Neary 2004-07-23 11:41:58 UTC
*** Bug 125859 has been marked as a duplicate of this bug. ***
Comment 14 Dave Neary 2004-08-09 14:12:04 UTC
Comment on attachment 17555 [details] [review]
Crash fix.

This patch was committed some time ago.
Comment 15 Sven Neumann 2005-10-14 12:32:15 UTC
*** Bug 318843 has been marked as a duplicate of this bug. ***
Comment 16 Michael Schumacher 2006-02-15 19:25:48 UTC
*** Bug 311320 has been marked as a duplicate of this bug. ***
Comment 17 Alexia Death 2008-08-08 19:05:49 UTC
Is this bug still valid? At least the attached file shows no signs of issues.
Comment 18 Martin Nordholts 2008-08-09 03:59:57 UTC
Indeed, seems like the new PSD plugins deals with this. Closing as OBSOLETE.