[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

3453.0. "Help on CSIX - IFF to SIXEL conversion" by ISIDRO::JIMENEZ () Wed Feb 07 1990 06:21

    I've been trying to use CSIX without any success so far, it keeps
    saying:"CMAP - not found". Actually, the files I'm willing to convert
    to sixel (to print on a LJ250 at the office) are extracted from
    ARChives. 
    
    The CSIX.EXE file is from WJG:: and I'm using it on a VMS V5.1 machine.
    
    Any hints ?
    Thanks, Gabriel
    
T.RTitleUserPersonal
Name
DateLines
3453.1TALLIS::MCAFEESteve McAfeeWed Feb 07 1990 12:266
There is a slightly newer version that had one bug fixed in
NORSE::AMIGA:[UPLOAD]CSIX_13C.ARC.  But this bug had nothing to
do with not finding a CMAP.  Could you give me a pointer to
the IFF file you are trying to convert?

- steve
3453.2it works (almost)ISIDRO::JIMENEZMon Feb 12 1990 10:1712
    I managed to make it work. I've converted quite a few files without
    any problem. The file that was, and still is, giving that message
    is "Jessica", extracted from the JESSICA.ARC archive. Maybe not
    an IFF file ?  I don't know, I can't load that file on my A500 1
    meg, it gurus and crashes the system.
    
    Am I using the right tool (CSIX) to: produce presentations home (with
    DeLuxePaint III) and then, maybe, "import" the sixel file in SIGHT
    to add/modify if needed ?
    
    Gabriel
    
3453.3 jessica = many framesWILARD::ROSCETTIA Spurious Char@cterMon Feb 12 1990 16:065
    
     If my memory serves me right Jessica is an ANIMATION done with
    LIVE!.  ( I'm not bad etc...)
    
    brien
3453.424 bit (I'm in a rut tonight) CSIX?COMET::BELLMJThu Dec 19 1991 03:017
    Will CSIX convert IFF 24 bit images?
    
    If not, is there a program to take 24 bit data and convert it to some
    screen mode for a VAX workstation (I have no clue what the various file
    formats/viewer programs are for the VAXs)
    
    Mike
3453.5HYDRA::MOORESimply reinstall....EVERYTHING!Thu Dec 19 1991 17:5812
    Is the VAX workstation running DECwindows?  If so, there are several
    decent viewers available which can display images stored in various
    formats.  I've had good results with xLoadImage, another is called
    "xv".  Check the (ELKTRA::)DW_EXAMPLES conference for pointers to
    these and others.  I don't think any of them will display Amiga IFF
    files directly, but you could use one of the PBMplus or FBM packages
    (available for most machines, including Amiga) to convert between
    formats.  Many of the viewers handle GIF format, which is probably
    a good choice if you can live with 8-bit color.
    
    Art Director Professional (comercial product) on the Amiga also does
    a fine job of format conversions.
3453.6PEEVAX::GIFFORDMowing the weed's at Mum's.Thu Dec 19 1991 18:0143
Rumer has it that I am a sort of VAX image specialist.. So I will try to answer
your question.

(I will post into peevax:: a program that takes 7 bit grayscale data and turn
it to a ddif file. This should get you started. The program is viftoddif.c
(It takes a VAXcamera file and turns it into ddif).

Ok to start you need to know a few things. Ignoring any extranious crud in your
file (what ever it is), you will have a bitmap. This bitmap is normally your image
component. Now for a 24 bit image, each pixel on the screen is composed of 3 bytes.
(You may find 4 bytes being used just to get an even boundary). Now what you must
have is the framing info. This says how many pixels are on each line, and the 
number of lines. I find the number of lines is less important because you can
derive this programattically.

Now what you need is the organisation of the bitmap. Do each pixel follow each
other left to right, top to bottom? Is the pixmap compressed etc.
What you should end up with is a left to right top to bottom data organisation.

Now assuming you have good answers to the above, you must do the following to 
get a image frame in memory (Once you have a frame in memory it is only
three 'C' instructions to write a ddif file out).

1. Create an item list containing the framing, the color organisation etc.
2. Allocate a buffer to hold your input data.
3. Read your bitmap data into your buffer.
4. Create an image frame using above item list.
5. Import your data from buffer
6. Free the buffer.
7. Write the ddif file out.

$ Image view your_ddif_file

It all sounds quite simple, but I hasten to add it has taken me a little time
to work out all of the above. I suggest that anyone who wants to play with
this perform the following.

1. Look at viftoddif.c
2. Look at the DAS manuals (They are on the net).
3. Develop huge amounts of patience
4. Try it.

Stan.
3453.7ELKTRA has been dismantled...CSSE32::SMITHRecreational Pcyclepath...Thu Dec 19 1991 20:0211
    re .5
    
     >> Check the (ELKTRA::)DW_EXAMPLES conference for pointers
    
    
    Make that CSSE32::DW_EXAMPLES conference as ELKTRA:: has been
    unplugged.
    
    ;')
    
    ...Ed