Hi,
I would like to convert an HDR (i.e in NetPFM format) image to non-HDR image (i.e. NetPGM).
The conversion needs to be "viewer-friendly", that is the resulting image needs be contrast, without cutting off information etc.
How could I achieve this with ImageMagick 7.0.8 Q16, with HDRI?
Thanks!
Convert hdr image to non-hdr image
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Convert hdr image to non-hdr image
Does "-auto-level" do what you want? If not, please link to a sample input, and say what output you want.
snibgo's IM pages: im.snibgo.com
Re: Convert hdr image to non-hdr image
I've tried
`magick src.pfm -auto-level src.pgm`
Now both feh and sxiv say src.pgm is broken, is there something else?
`magick src.pfm -auto-level src.pgm`
Now both feh and sxiv say src.pgm is broken, is there something else?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Convert hdr image to non-hdr image
Please link to a sample input.
snibgo's IM pages: im.snibgo.com
Re: Convert hdr image to non-hdr image
magick rose: rose.pfm
magick rose.pfm -auto-level rose.pgm
magick rose.pfm -auto-level rose.pgm
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Convert hdr image to non-hdr image
It seems that IM is writing rose.pgm as 32 bits/channel. (Just one channel, of course.) Gimp can't read the result.
If we insert "-depth 16" before writing, Gimp can read it fine.
Does that help?
If we insert "-depth 16" before writing, Gimp can read it fine.
Does that help?
snibgo's IM pages: im.snibgo.com
Re: Convert hdr image to non-hdr image
Almost, had to use -depth 8, for feh/sxiv.
Do I still need -auto-level?
Do I still need -auto-level?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Convert hdr image to non-hdr image
I don't really understand your question. Perhaps "-auto-level" does what you want.dkrikun0 wrote:The conversion needs to be "viewer-friendly", that is the resulting image needs be contrast, without cutting off information etc.
snibgo's IM pages: im.snibgo.com