skip to Main Content

So I have raw image and I am just curious If I can edit such image to save as RGB-32 Packed transparent interlaced raw and what program I could use, there is specification:
Format of RAW image

I have tried using photoshop but then game crashes. Is it even possible? I should get file without thumbnail. I also tried using gimp, free converters and Raw viewer but no luck. Any suggestions?

Edit:
Used photoshop (interleaved with transparency format), game starts but images are just bunch of pixels.

file that i try to prepare (221bits)

2

Answers


  1. Try using online converters. They help most of the time.

    A Website like these can possibly help:

    https://www.freeconvert.com/raw-to-png
    https://cloudconvert.com/raw-to-png
    https://www.zamzar.com/convert/raw-to-png/
    

    Some are specific websites which ask you for detail and some are straight forward conversions.

    Login or Signup to reply.
  2. We are still not getting a handle on what output format you are really trying to achieve. Let’s try generating a file from scratch, to see if we can get there.

    So, let’s just use simple commands that are available on a Mac and generate some test images from first principles. Start with exactly the same ghost.raw image you shared in your question. We will take the first 12 bytes as the header, and then generate a file full of red pixels and see if that works:

    # Grab first 12 bytes from "ghost.raw" and start a new file "red.raw"
    head -c 12 ghost.raw > red.raw
    
    # Now generate 512x108 pixels, where red=ff, green=00, blue=01, alpha=fe and append to "red.raw"
    perl -E 'say "ff0001fe" x (512*108)' | xxd -r -p >> red.raw
    

    So you can try using red.raw in place of ghost.raw and tell me what happens.

    Now try generating a blue file just the same:

    # Grab first 12 bytes from "ghost.raw" and start a new file "blue.raw"
    head -c 12 ghost.raw > blue.raw
    
    # Now generate 512x108 pixels, where red=00, green=01, blue=ff, alpha=fe and append to "blue.raw"
    perl -E 'say "0001fffe" x (512*108)' | xxd -r -p >> blue.raw
    

    And then try blue.raw.


    Original Answer

    AFAIK, your image is actually 512 pixels wide by 108 pixels tall in RGBA8888 format with a 12-byte header at the start – making 12 + 4*(512 * 108) bytes.

    You can convert it to PNG or JPEG with ImageMagick like this:

    magick -size 512x108+12 -depth 8 RGBA:ghost.raw result.png
    

    enter image description here

    I still don’t understand from your question or comments what format you actually want – so if you clarify that, I am hopeful we can get you answered.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search