bugGNUstep - Bugs: bug #4750, GWorkspace content (image)...

Group
 
 

bug #4750: GWorkspace content (image) inspector fails depending on the filename

Submitter:  None
Submitted:  Sat 16 Aug 2003 11:11:18 AM UTC
   
 
Category:  Gui/AppKit Severity:  1 - Wish
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  fedor
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 20 Aug 2003 04:04:35 AM UTC, comment #2: 

Added indicated fix.

Adam Fedor <fedor>
Group administrator
Sat 16 Aug 2003 11:00:48 PM UTC, comment #1: 

The problem is not in the GWorkspace content (image) inspector, but in NSImageRep.m.
This simple patch can fix it.

@@ -169,7 +169,9 @@
       NSLog(@"Extension missing from image filename - '%@'", filename);
       return nil;
     }
-

+  ext = [ext lowercaseString];

   if (self == NSImageRep_class)
     {
       rep = [self imageRepClassForFileType: ext];

Enrico Sersale <esersale>
Group Member
Sat 16 Aug 2003 11:11:18 AM UTC, original submission:  

The GWorkspace content (image) inspector works on an arbitrary JPEG image with a lower case extension (.jpg).

Rename the file to have an upper case extension (.JPG), and the content inspector still correctly reports the image dimensions in pixels, but displays the following greyed out text "Invalid Contents" instead of the image.

The system is running a CVS version of GNUstep and GWorkspace from 20030813 on NetBSD/i386 1.6.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2003-08-20 fedor StatusNone None
    Assigned toNone None
    Open/ClosedOpen None
2003-08-16 esersale Severity3 - Normal None
2003-08-16 esersale CategoryApplication None

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code