Results 1 to 2 of 2

Thread: Save files in JPG

  1. #1
    Join Date
    Sep 2008
    Location
    Rīga, Latvija
    Beans
    126
    Distro
    Xubuntu 10.04 Lucid Lynx

  2. #2
    Join Date
    Apr 2009
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Save files in JPG

    As one of the comments in your second link state:
    @Juan
    This is actually just a concatenation of two files.
    Linux has a command cat to do just that:
    $> cat f1 f2 > f3
    I assume the reason this works is because the JPEG ends before the RAR starts:
    The file contents are something along the lines of:
    JPEG header
    JPEG data
    JPEG end
    +
    RAR header
    RAR data
    RAR end
    The graphics program reads until the JPEG ends, and the RAR program searches for the RAR header and reads from there. Whether or not the de-compressor searches for the header (and doesn’t just start at the beginning) determines whether or not the file can be read.
    I may be wrong though.
    I haven't tried it

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
  •