Problem with Thermal images using Tomas123's script

Started by sebastianbarria, October 18, 2023, 07:54:52 AM

Previous topic - Next topic

sebastianbarria

Hi everyone.

I'm trying to process thermal images using Tomas123's script posted originally on this forum.
For years, everything works fine... but now I have a set of images that doesn't process correctly.

I've been debugging and it seems that the IR image is not being well generated, since the rawThermalImage inside the original file is in TIFF format and not in PNG.
Even the script itself has an IF to verify if it's PNG or TIFF format, the final result is a flat image with the same color of the palette on each pixel.

It looks to be something with the convert command, but I'm not that expert and I'm not what could be wrong.
I know the image are ok, because when I open it on BFIC software it looks fine.

In case someone could help me, I'm attaching the files:
IRX_0001.jpg (original thermal image)
flir.zip (Tomas123 original php script)

Thanks a lot!

StarGeek

I believe this has popped up before, though I'll have to search to find the post.

The problem has to do with the program you're using to look at the extracted image.  The extracted Tiff is a 16 bit per sample image and your program can't handle it.

Also a possibility, the convert command in the script can't handle 16 bit depth images.  I haven't checked the script to be sure.

Here's what the extracted tiff looks like to me using Windows Irfanview


Edit: Previous thread : Help with extracting a tiff image from a IMG file
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype