Ubuntu – How to convert a .jpg or .png image to .raw format

image processingimage-editorsoftware-recommendation

Is there any software that converts JPEG or PNG to RAW?

I have been looking around and I've only found applications that do the reverse.

Best Answer

I just find out here how to do that with Gimp !

Works almoust perfectly ! :P

Update

Used method:

  1. Export the file on Gimp: Ctrl Shift E
  2. On the export window, choose Raw Image Data on Select File Type

    1. Click on Export button
  3. On the raw image export window, Choose Planar for the RGB Save Type
    1. Click on Export button
  4. Open the folder where the file was saved and rename his extension from .data to .raw
  5. On Unity3d, chose Bit 8 for Depth on the Import Heightmap window

Unfortunately, the generated image by Gimp isn't that good... So, I'm still would appreciate some help.

Related Question