LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-21-2010, 01:07 PM   #1
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Rep: Reputation: 41
Gimp and PCX images


I've got a rather picky application that not only insists on using the PCX format for images, but also apparently requires uncompressed PCX images.

The problem is that GIMP presents me with no options when saving one of the PCX files I've edited, and seems to save and compress it whether I want it to or not, and the application trying to load it fails, complaining about not being written for compression.

I cannot find any way inside GIMP to stop it compressing it, or any alternative method that does not (also) auto-compress the image. I've even gone and dug out an old copy of Paint Shop Pro 9 on Windows, and had no success there either.

How can I either A: stop Gimp from compressing it, or B: Decompress it?
 
Old 07-21-2010, 01:28 PM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,134

Rep: Reputation: 132Reputation: 132
http://www.pictview.com/descript.htm
this app seem to decompress pcx images.

If Gimp folder doesn't have that setting..
 
Old 07-21-2010, 01:44 PM   #3
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
Strangely, the PCX that creates is not only smaller than the original file, but also throws up the error of 'Not written for compression' too.
 
Old 07-21-2010, 01:58 PM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
According to wikipedia and a couple of other sites I looked at, there's no such thing as an uncompressed PCX image. There's only a single RLE compression algorithm that's always in effect.

On the other hand, there are other sites and programs that do make mention of "uncompressed" PCX, so I don't really know what to think. I can only guess that all uses of such are simply wrong, actually refer to some other aspect of the format, or there's some kind of hack out there that goes against the standard definition.

I gave imagemagick's convert a try, but the "+compress" option doesn't seem to have any effect on PCX files.
 
Old 07-21-2010, 02:20 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
I find the wikipedia article to be unambiguous--ie: PCX = Compressed

If an application expects a file in a PCX format, then I'm not sure where it would find data saying that the file "was not written for compression". The spec in the wikipedia article does not appear to provide for putting that kind of info into a file.

For the OP:
What is the application you are trying to use? (Perhaps it needs to be replaced with something else.)
 
Old 07-21-2010, 02:23 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
PS:
Any compressed file will be uncompressed when read into a typical photo editing program (the data is in memory in the native format for the app.) This does not mean that the same app can create an "uncompressed" pcx, jpg, etc.
 
Old 07-21-2010, 02:45 PM   #7
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
Well, the reason I'm after sorting this is because I (finally) managed to get one of my older Windows games, Alien Crossfire (The expansion to Alpha Centauri) to work under Wine without crashing immediately.
Using the Faction editor to load a faction with custom PCX images that have been edited in GIMP (Based off one of the original ones) it complains with the 'Not written for compression'.
For reference, on Windows itself, it also happens, and gives the options of abort, retry and ignore. The first two close the program, the latter loads the faction, but loads no images. While this makes it possible to edit it, it doesn't bode well for Alien Crossfire itself being able to load it.
 
Old 07-21-2010, 05:13 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Possibly GIMP does not write the PCX format correctly?
 
Old 07-21-2010, 06:24 PM   #9
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
I don't know. I ran an experiment though, the Alien Crossfire itself appears to be able to read the file perfectly, which means the bug is in the faction editor. I can work with that, at least, the editor is just an easy way out, I can edit the text file manually once I figure it out again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Raw images in Gimp don't look right Koppie Linux - Software 7 01-10-2011 01:00 AM
GIMP becomes very slow with large images Cinematography Linux - Software 4 11-04-2007 02:37 PM
Gimp - Combining Images rickh Linux - Software 4 09-22-2005 12:55 PM
Resizing Images in the GIMP batgranny Linux - Software 1 02-15-2005 10:38 AM
Add images horizontally with gimp? unholy Linux - Software 3 01-13-2004 05:36 PM


All times are GMT -5. The time now is 02:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration