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.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityIs 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.
I just find out here how to do that with Gimp !
Works almoust perfectly ! :P
Used method:
On the export window, choose Raw Image Data
on Select File Type
Export
buttonPlanar
for the RGB Save Type
Export
button.data
to .raw
Bit 8
for Depth on the Import Heightmap windowUnfortunately, the generated image by Gimp isn't that good... So, I'm still would appreciate some help.
Ubuntu 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
convert-im6.q16: no encode delegate for this image format 'RAW' @ warning/constitute.c/WriteImage/1180.
Answer above may work for old versions of ImageMagick, but this worked for me:
convert lena512.bmp gray:lena512.raw
and vice versa
convert -size 512x512 -depth 8 gray:lena512.raw lena512.png
For 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