Welcome to TalkGraphics.com
Results 1 to 9 of 9
  1. #1

    Default Xara File Format Compression

    Is there any way to turn off the file compression when saving a Xara file?

    I am trying to parse a file and am failing when I hit the TAG_STARTCOMPRESSION followed by rec len 4, data bytes 63 00 00 00. I then hit 8d as the first byte of the zlib compression stream which is invalid?

    At least if I could turn the compression off, I could get on with it!

  2. #2
    Join Date
    Dec 2005
    Location
    Surrey, BC, Canada
    Posts
    566

    Default Re: Xara File Format Compression

    There are two ways you can go here...

    The more technical thing here is that in Xara essentially calls inflateInit2 (&stream, -MAX_WBITS) instead of inflateInit (&stream). Essentially this tells zlib that it shouldn't expect to see any zlib header information in the compressed stream, which is probably the error message that you're getting.

    On a less technical front, if you get ExpandXara from http://support.xara.com/index.php?_m...temid=10&nav=0
    and run it, it will create an uncompressed file for you to parse. If you do this, you'll notice a few records in the file with tag 9999. This is a bogus tag that expandxar inserts into the file in place of the records that turn on and off compression, since some of the records back-reference other records in the file. It also replaces the original creator information in TAG_FILEHEADER with information about itself, which may or may bother you.

    Coincidentally I was fighting with this very problem just last week!
    This signature would be seven words long if it was six words shorter.

  3. #3
    Join Date
    Jun 2004
    Location
    North Tawton, UK
    Posts
    1,152

    Default Re: Xara File Format Compression

    Hi Sculptex & Odat,

    Use regedit to set the Options/Filters/CompressV2Format value to 0.

    For other readers: Obviously we don't recommend this for most users and you can damage your installation of Xtreme and Windows if you make mistakes in the registry so don't be tempted to change this unless you really know what you're doing.

    PhilM

  4. #4

    Default Re: Xara File Format Compression

    thanks v much guys, I am spoilt for choice!

    now I can get on and parse, parse, parse!

  5. #5
    Join Date
    Jan 2006
    Posts
    2,439

    Default Re: Xara File Format Compression

    You're also able to export your drawing as ASCII text, if you choose "File" -> "Export" -> Filetype "Xara (*.wix)". This creates a ASCII file for debugging or learning the structure of .XAR files.

    Regards,
    Remi

  6. #6
    Join Date
    May 2004
    Location
    Xara Group Ltd
    Posts
    415

    Default Re: Xara File Format Compression

    You can also hit Ctrl-Shift-8 in Xtreme and Xtreme Pro to open a special file format debugging dialog. While this dialog is open, any .xar,.web or .wix file imported into the document by drag and drop will not actually be imported but will be displayed in the dialog instead (e.g. open the dialog and then drag a .xar file into the document view, not the dialog itself).

    Gerry

  7. #7

    Default Re: Xara File Format Compression

    COOL - that debug is awesome!

    Thanks guys, only shame is I already wasted a lot of effort trying to create something that already existed

  8. #8
    Join Date
    Dec 2003
    Location
    Brest, Belarus
    Posts
    765

    Default Re: Xara File Format Compression

    Eahhh!!

    I knew about this dialog, but I can not figured out to DRAG file in Xara.
    Now I know. Thanks, it is great help. Little too late
    Regards, Dmitry.
    Useful utils for Xara: http://xaraxtv.at.tut.by

  9. #9
    Join Date
    Dec 2006
    Location
    Voronezh, Russia
    Posts
    46

    Default Re: Xara File Format Compression

    whoa!! that can't be found in help, thx a lot
    about compression, i think best way for xara is link option in bitmaps import

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •