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.
23 Answers
I just find out here how to do that with Gimp !
Works almoust perfectly ! :P
Update
Used method:
- Export the file on Gimp: Ctrl Shift E
On the export window, choose
Raw Image Dataon Select File Type- Click on
Exportbutton
- Click on
- On the raw image export window, Choose
Planarfor the RGB Save Type- Click on
Exportbutton
- Click on
- Open the folder where the file was saved and rename his extension from
.datato.raw - On Unity3d, chose
Bit 8for Depth on the Import Heightmap window
Unfortunately, the generated image by Gimp isn't that good... So, I'm still would appreciate some help.
1Ubuntu by default has Imagemagick installed and provides the convert command line tool to convert to various image formats. You can simply do:
convert xyx.jpg xyz.RAW 1 Answer above may work for old versions of ImageMagick, but this worked for me:
convert lena512.bmp gray:lena512.rawand vice versa
convert -size 512x512 -depth 8 gray:lena512.raw lena512.pngFor many images this works (I haven't found solution for mogrify):
parallel -j 4 convert {} gray:{}.raw ::: slice-*.png-j is number of processes, {} gets replaced by the filename matching the mask specified after ::: so output files are named as slice-0000.png.raw