Could not decode image (JPEG)

1,899 views
Skip to first unread message

Jaroslav.Beran

unread,
Sep 30, 2008, 4:27:57 PM9/30/08
to hugin and other free panoramic software
Hi,
I can't load my jpeg's from my Olympus C-765 camera into Hugin
(0.7.0.3082, WinXP Pro SP3) - everytime I'm getting message
"Unsupported file format. Could not decode image."
Seems strange to me - I'm able to open jpeg's in Irfan view 4.20 with
no problems.
Is there any component missing? I downloaded Hugin from this link
http://www.photopla.net/hugin/hugin_svn3082_20080524_setup.exe.
Thanks for any help

Bruno Postle

unread,
Sep 30, 2008, 4:54:55 PM9/30/08
to Hugin ptx
On Tue 30-Sep-2008 at 13:27 -0700, Jaroslav.Beran wrote:
>
>I can't load my jpeg's from my Olympus C-765 camera into Hugin
>(0.7.0.3082, WinXP Pro SP3) - everytime I'm getting message
>"Unsupported file format. Could not decode image."

Hi, can you upload one of these JPEG files somewhere?

--
Bruno

Jaroslav.Beran

unread,
Oct 1, 2008, 4:31:33 PM10/1/08
to hugin and other free panoramic software
Hi, images are here:

http://www.volny.cz/sdkfz.171/P9285622.JPG
http://www.volny.cz/sdkfz.171/P9285623.JPG
http://www.volny.cz/sdkfz.171/P9285624.JPG

I can open them in Windows - for example in IrfanView, or GIMP (both
latest versions) - without problems, except Hugin :(

Jarda

Seb Perez-D

unread,
Oct 1, 2008, 4:38:32 PM10/1/08
to hugi...@googlegroups.com
2008/10/1 Jaroslav.Beran <beran.j...@gmail.com>:

>
> Hi, images are here:
>
> http://www.volny.cz/sdkfz.171/P9285622.JPG
> http://www.volny.cz/sdkfz.171/P9285623.JPG
> http://www.volny.cz/sdkfz.171/P9285624.JPG
>
> I can open them in Windows - for example in IrfanView, or GIMP (both
> latest versions) - without problems, except Hugin :(
>

The images work in Hugin/linux (I only tested the first one).

Strange.

Cheers,

Seb

Harry van der Wolf

unread,
Oct 1, 2008, 4:50:35 PM10/1/08
to hugi...@googlegroups.com
Hi,

The exif info is not complete or your Olympus does not give correct info to Hugin. On my Apple the jpegs are read by Hugin, but hugin can't read the HFOV and asks for it. Is this going wrong in the windows version?

Harry

2008/10/1 Seb Perez-D <sbprz...@gmail.com>

Jaroslav.Beran

unread,
Oct 2, 2008, 1:16:05 AM10/2/08
to hugin and other free panoramic software
Hi,

I'm sorry, bud I don't know what the HFOV is :(
If I have to believe to wiki, it's Horizontal Field Of View - it's
parameter, which you can calculate from other known parameters like
size of chip and focal lenght. I remember, that some 0.5.x.x version
of Hugin (probably two years ago) had no problem with my images. If
this was the point, then all Olympus C-765 users have to have this
problem.

Thanks anyway

Jarda


On 1 Říj, 22:50, "Harry van der Wolf" <hvdw...@gmail.com> wrote:
> Hi,
>
> The exif info is not complete or your Olympus does not give correct info to
> Hugin. On my Apple the jpegs are read by Hugin, but hugin can't read the
> HFOV and asks for it. Is this going wrong in the windows version?
>
> Harry
>
> 2008/10/1 Seb Perez-D <sbprzd+...@gmail.com <sbprzd%2B...@gmail.com>>
>
>
>
>
>
> > 2008/10/1 Jaroslav.Beran <beran.jaros...@gmail.com>:
>
> > > Hi, images are here:
>
> > >http://www.volny.cz/sdkfz.171/P9285622.JPG
> > >http://www.volny.cz/sdkfz.171/P9285623.JPG
> > >http://www.volny.cz/sdkfz.171/P9285624.JPG
>
> > > I can open them in Windows - for example in IrfanView, or GIMP (both
> > > latest versions) - without problems, except Hugin :(
>
> > The images work in Hugin/linux (I only tested the first one).
>
> > Strange.
>
> > Cheers,
>
> > Seb- Skrýt citovaný text -
>
> - Zobrazit citovaný text -

Klaus

unread,
Oct 2, 2008, 8:18:01 AM10/2/08
to hugin and other free panoramic software
Hello,

While I have not used the recent Windows build with Olympus images, I
do know that with my C-370 the EXIF is lacking as well, and on my Mac
I do have to enter a reasonable guess for the HFOV into the popup
window when importing the images.

On 2 Oct, 06:16, "Jaroslav.Beran" <beran.jaros...@gmail.com> wrote:
> Hi,
>
> I'm sorry, bud I don't know what the HFOV is :(
> If I have to believe to wiki, it's Horizontal Field Of View - it's
> parameter, which you can calculate from other known parameters like
> size of chip and focal lenght. I remember, that some 0.5.x.x version
> of Hugin (probably two years ago) had no problem with my images. If
> this was the point, then all Olympus C-765 users have to have this
> problem.

Probably some other Olympus users as well.

It is not as bad as it sounds, because usually you have enough control
points to make the focal length/HFOV/equivalent a parameter determined
during optimisation. Just make sure you do not enter a completely
crazy value at the start, optimisation will later sort it.

Cheers

Klaus

Milan Knížek

unread,
Oct 2, 2008, 1:46:03 PM10/2/08
to hugi...@googlegroups.com
Klaus píše v Čt 02. 10. 2008 v 05:18 -0700:

> It is not as bad as it sounds, because usually you have enough control
> points to make the focal length/HFOV/equivalent a parameter determined
> during optimisation. Just make sure you do not enter a completely
> crazy value at the start, optimisation will later sort it.

I think the original problem was that the image could not be open by
hugin at all, while improper reading of exif data might be a subsequent
problem.

P.S. I do not use hugin on Windows, so cannot say.

Milan Knizek
knizek (dot) confy (at) volny (dot) cz
http://www.milan-knizek.net - about linux and photography

Jaroslav.Beran

unread,
Oct 2, 2008, 4:02:11 PM10/2/08
to hugin and other free panoramic software
Yeah, I think the same, but don't know how to solve it. I installed
Hugin with installer downloaded from http://panospace.wordpress.com/downloads
(http://www.photopla.net/hugin/hugin_svn3082_20080524_setup.exe) - I
ran just this installer, nothing more. I don't know if there is any
additional components which I have to install - I'm newbie to Hugin
(I've actually used Hugin two years ago for only one week). I just
have lot of photos to make panoramas from, and don't want to use some
cracked commercial software - and I think that Hugin is probably the
best open-source panoramic software (just seems to me, because it is
very often reffered to on lot of sites).

Yuval Levy

unread,
Oct 2, 2008, 6:15:32 PM10/2/08
to hugi...@googlegroups.com
Jaroslav.Beran wrote:
> Yeah, I think the same, but don't know how to solve it.

start with exiftool - it comes with hugin and is in the hugin\bin folder
of the Windows installation.

from a DOS windows, run exiftool with the -U option, i.e.

C:\> exiftool -U image.jpg

and post it here so that we can see what kind of exif data is available
if any.

Yuv

Jaroslav.Beran

unread,
Oct 6, 2008, 3:13:56 PM10/6/08
to hugin and other free panoramic software
Well, here is exiftool output for the first image (or, more convenient
form of text file is here - http://www.volny.cz/sdkfz.171/exif.txt):

ExifTool Version Number : 7.25
File Name : P9285622.jpg
Directory : P:\Obrázky\Fotografie\Tříděné
\2008-09
File Size : 706 kB
File Modification Date/Time : 2008:09:28 14:31:40
File Type : JPEG
MIME Type : image/jpeg
Exif Byte Order : Little-endian (Intel, II)
Image Description : OLYMPUS DIGITAL CAMERA
Make : OLYMPUS CORPORATION
Camera Model Name : C765UZ
Orientation : Horizontal (normal)
X Resolution : 72
Y Resolution : 72
Resolution Unit : inches
Software : v777-79
Modify Date : 2008:09:28 14:31:41
Y Cb Cr Positioning : Co-sited
Exposure Time : 1/250
F Number : 4.0
Exposure Program : Program AE
ISO : 64
Exif Version : 0220
Date/Time Original : 2008:09:28 14:31:41
Create Date : 2008:09:28 14:31:41
Components Configuration : YCbCr
Compressed Bits Per Pixel : 2
Exposure Compensation : 0
Max Aperture Value : 2.8
Metering Mode : Multi-segment
Light Source : Unknown
Flash : Off
Focal Length : 6.8 mm
Special Mode : Normal, Sequence: 0, Panorama:
(none)
Quality : HQ (Normal)
Macro : Off
Black & White Mode : Off
Digital Zoom : 1.0
Focal Plane Diagonal : 7.162 mm
Lens Distortion Params : -187 -361 -410 -139 -188 -150
Resolution : 1
Camera Type : SX777
Camera ID : OLYMPUS DIGITAL CAMERA
Pre Capture Frames : 0
White Board : 0
One Touch WB : Off
White Balance Bracket : 0
White Balance Bias : 0
Data Dump : (Binary data 494 bytes, use -b
option to extract)
User Comment :
Flashpix Version : 0100
Color Space : sRGB
Exif Image Width : 2288
Exif Image Height : 1520
Interoperability Index : R98 - DCF basic file (sRGB)
Interoperability Version : 0100
File Source : Digital Camera
Scene Type : Directly photographed
Custom Rendered : Normal
Exposure Mode : Auto
White Balance : Auto
Digital Zoom Ratio : 0
Scene Capture Type : Standard
Gain Control : None
Contrast : Normal
Saturation : Normal
Sharpness : Normal
Print IM 0x0001 : 0x00140014
Print IM 0x0002 : 0x00000001
Print IM 0x0003 : 0x00000088
Print IM 0x0007 : 0x00000000
Print IM 0x0008 : 0x00000000
Print IM 0x0009 : 0x00000000
Print IM 0x000a : 0x00000000
Print IM 0x000b : 0x000000d0
Print IM 0x000c : 0x00000000
Print IM 0x000d : 0x00000000
Print IM 0x000e : 0x000000e8
Print IM 0x0100 : 0x00000001
Print IM 0x0101 : 0x000000ff
Print IM 0x0102 : 0x00000083
Print IM 0x0103 : 0x00000083
Print IM 0x0104 : 0x00000083
Print IM 0x0105 : 0x00000083
Print IM 0x0106 : 0x00000083
Print IM 0x0107 : 0x00808080
Print IM 0x0110 : 0x00000080
Compression : JPEG (old-style)
Thumbnail Offset : 4096
Thumbnail Length : 3453
Image Width : 2288
Image Height : 1520
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:2:2 (2 1)
Aperture : 4.0
Image Size : 2288x1520
Scale Factor To 35 mm Equivalent: 6.0
Shutter Speed : 1/250
Thumbnail Image : (Binary data 3453 bytes, use -b
option to extract)
Circle Of Confusion : 0.005 mm
Field Of View : 47.3 deg
Focal Length : 6.8 mm (35 mm equivalent: 41.1 mm)
Hyperfocal Distance : 2.32 m
Light Value : 12.6

Yuval Levy

unread,
Oct 7, 2008, 6:46:34 PM10/7/08
to hugi...@googlegroups.com
Jaroslav.Beran wrote:
> Well, here is exiftool output for the first image

thanks. It looks OK.

> Field Of View : 47.3 deg
> Focal Length : 6.8 mm (35 mm equivalent: 41.1 mm)

as a work around, enter these values when asked.

I am puzzled as to why hugin can't read them - I've tried to open the
files you posted earlier and it prompts me to enter HFOV and Focal
Length as well.

Yuv

Gerry Patterson

unread,
Oct 7, 2008, 11:50:00 PM10/7/08
to hugi...@googlegroups.com
Hello,

I haven't looked yet, but it may be a lack of support in the metadata handling library: exiv2.  I am not sure what version people are using when building hugin.

- Gerry

Jaroslav.Beran

unread,
Oct 8, 2008, 12:16:46 AM10/8/08
to hugin and other free panoramic software
Yes, but to enter these values, I have to open the images first :/
Really looks like some important component (dll or something) is
missing...

Jarda

Jaroslav.Beran

unread,
Oct 8, 2008, 12:18:03 AM10/8/08
to hugin and other free panoramic software
I tried to find a file "exiv*.*" on my computer, but there is none...

Jarda
> > Yuv- Skrýt citovaný text -

Bart.van.Andel

unread,
Oct 8, 2008, 5:17:43 AM10/8/08
to hugin and other free panoramic software
> I tried to find a file "exiv*.*" on my computer, but there is none...

You won't find or need such a file unless you are building from
source. Upon compiling, it is integrated into the program.

"FieldOfView" doesn't seem to be a real tag in the Exif specification
by the way; it can't be found in http://www.exif.org/Exif2-2.PDF
anyway (specifications for Exif version 2.2). I guess it is computed
from other tags.

Jaroslav.Beran

unread,
Oct 8, 2008, 1:56:18 PM10/8/08
to hugin and other free panoramic software
Yes, I know - Field of view can me computed from chip diagonal and
focus length. But I think, that this is not the case. If Hugin can't
decode image, it can't recognize it as JPEG (but other apps do). So -
there must be something wrong with HUGIN installation (missing
component or premise). Logically - you can stitch together any
pictures, even if they have no exif and even if they are not parts of
the panorama (I know - result will be a mess, but you can do it), so
exif probably is not the case of my issue. You can see in earlier
posts, that Seb Perez-D and Harry van der Wolf succesfully opened the
images on Linux and Apple - if exif was the case, they shouldn't have
opened them, because in that case the problem should be image
dependent. But it is obvious from the mere fact, that on Linux and
Apple the files can be opened, that the problem is system dependent.
But that's everything I can deduce. So if any more experienced user
can get closer to the solution, I will be very glad...

Jarda

On Oct 8, 11:17 am, "Bart.van.Andel" <bavanan...@gmail.com> wrote:
> > I tried to find a file "exiv*.*" on my computer, but there is none...
>
> You won't find or need such a file unless you are building from
> source. Upon compiling, it is integrated into the program.
>
> "FieldOfView" doesn't seem to be a real tag in the Exif specification
> by the way; it can't be found inhttp://www.exif.org/Exif2-2.PDF

Yuval Levy

unread,
Oct 8, 2008, 4:28:59 PM10/8/08
to hugi...@googlegroups.com
Jaroslav.Beran wrote:
> But it is obvious from the mere fact, that on Linux and
> Apple the files can be opened, that the problem is system dependent.
> But that's everything I can deduce. So if any more experienced user
> can get closer to the solution, I will be very glad...

I could open the files here, on Windows, with the same hugin version you
are using. The only thing that hugin did not recognize where FOV and
focal distance for which you have been given a workaround with the
exiftool -u command.

This is just temporary. As Gary pointed out, reading EXIF takes care in
an upstream library, exiv2. All hugin binaries for Windows known to me
are currently built against version 0.16 of exiv2. in the meantime there
has been 0.17 and 0.17.1 which are probably available in most linux
distributions (explaining the different behavior) and 0.18pre (that
introduces TIFF writing).

I have tried to build 0.17.1 on my windows box and failed. I have had
more success building the debug version out of SVN. I'll improve on that
and feed it into a future hugin windows binary when I have time. Or
maybe somebody else step in in the meantime.

Until then, use the workaround.

Yuv

Jaroslav.Beran

unread,
Oct 8, 2008, 5:43:58 PM10/8/08
to hugin and other free panoramic software
I'd like to use the workaround

> Field Of View : 47.3 deg
> Focal Length : 6.8 mm (35 mm equivalent: 41.1 mm)
as a work around, enter these values when asked.

but as I can't open the images (Hugin just says "Could not decode
image"), I have no chance to enter the values :(

Jarda

Yuval Levy

unread,
Oct 8, 2008, 6:03:47 PM10/8/08
to hugi...@googlegroups.com
Jaroslav.Beran wrote:
> but as I can't open the images (Hugin just says "Could not decode
> image"), I have no chance to enter the values :(

note that hugin *opens* project files, not images. Images are added to a
project. what are you doing to "open" the images?

Yuv

Jaroslav.Beran

unread,
Oct 8, 2008, 6:44:59 PM10/8/08
to hugin and other free panoramic software
Yuv,

on the first tab of new project (called "Assistant") there is a button
"Load images..."
I click the button, select images, click "Open", and then the message
"Could not decode image" appears.
Am I doing it the wrong way?

Jarda

Yuval Levy

unread,
Oct 8, 2008, 6:54:03 PM10/8/08
to hugi...@googlegroups.com
Jaroslav.Beran wrote:
> Am I doing it the wrong way?

no, you are doing it the same way I do that with the images you posted a
couple of days ago, with the same version of hugin you are using.

I am at loss explaining what is specifically wrong in the chain of
events on your computer.

on my computer it is "only" the exif data. I'll try to get a newer
version of exiv2 and build a newer version of hugin with it and hope it
improves for your images on my computer.

in the meantime, on your end, if you have access to a different
computer, try installing hugin on it and see if it can process your images.

sorry I can't be of any more help.

yuv

Bart.van.Andel

unread,
Oct 9, 2008, 12:08:01 AM10/9/08
to hugin and other free panoramic software
Just curious, and trying to pinpoint the problem. Could you try saving/
converting those images as TIFF first, before loading them in Hugin?
As you mentioned, there might be something wrong with loading JPGs
with Hugin on your computer, but does loading TIFF work? If not, Exif
might not be the problem.

If you'd really want to test if Exif is the problem on your computer,
you could also try to strip off the Exif data from the JPG and see
what happens then. A way to do that is to open the image in an image
editor, select all, paste as a new image and save it (of course this
isn't exactly the most sophisticated way).

Jaroslav.Beran

unread,
Oct 9, 2008, 4:23:26 AM10/9/08
to hugin and other free panoramic software
Yuv,

no need to be sorry - I'm glad that you (and all the others - of
course) are wasting your time to help me :)
I'll try to instal the same version of Hugin on Virtual PC with clean
instalation of Windows XP Pro SP3, and we will see.

Jarda

Milan Knížek

unread,
Oct 9, 2008, 4:01:57 PM10/9/08
to hugi...@googlegroups.com
Bart.van.Andel píše v St 08. 10. 2008 v 21:08 -0700:

> Just curious, and trying to pinpoint the problem. Could you try saving/
> converting those images as TIFF first, before loading them in Hugin?
> As you mentioned, there might be something wrong with loading JPGs
> with Hugin on your computer, but does loading TIFF work? If not, Exif
> might not be the problem.

I would also propose to first try if hugin can at least read some other
image file type like TIFF or PNG. If so, you can also try to re-save
(not just copy) your camera JPEGs as JPEGs with another program or
possibly strip EXIF data from the files.

If you do not have a program for converting file types, try IrfanView
(www.irfanview.cz - also in the Czech language), it has a batch
processing functionality as described here
http://www.irfanview.cz/tips.php#davkova_konverze

There are also programs, which can remove metadata from JPEGs (i.e.
EXIF, IPTC, etc.) - e.g.
http://www.rainbow-software.org/programs.html#JPG%20Cleaner

best regards,

Milan Knizek

Bart.van.Andel

unread,
Oct 9, 2008, 7:11:36 PM10/9/08
to hugin and other free panoramic software
> There are also programs, which can remove metadata from JPEGs (i.e.
> EXIF, IPTC, etc.) - e.g.
>  http://www.rainbow-software.org/programs.html#JPG%20Cleaner

This can be done with Irfanview as well, no need to download a
separate tool for that.
In the English version: just open Options -> "JPG Lossless Rotation...
(Shift-J)", choose "None" as the transformation, check "Optimize JPG
file", and tick "Clean all APP markers" (or Custom, with any
combination of metadata to keep).

Dmitry

unread,
Oct 11, 2008, 5:28:08 PM10/11/08
to hugin and other free panoramic software
I have the same problem when trying to open images from a folder with
cyrillic letters in the path. I guess in your case these can be Czech
letters. If so, then try to move photos to some simple path with only
latin letters and to reopen them there. If this will help, we have to
report a bug.

Regards,
Dmitry

Jaroslav.Beran

unread,
Oct 22, 2008, 3:50:28 PM10/22/08
to hugin and other free panoramic software
Seems strange to me - I converted images to another format, but
Hugin's File Open dialog shows only JPEGs (even when I've selected All
Files). I'm still unable to open my JPEGs (even after installation of
latest official Windows release). I'm able to open any other JPEG (eg.
saved from Internet) - Hugin shows dialog prompting me to enter HFOV.
This is situation on my Windows installation - BUT... In MS Virtual PC
I'm able to open my JPEGs in Hugin, but HFOV dialog appears.
Isn't it kinda strange?

Jaroslav

PS: Sorry for late update on my situation - been busy with some game
translations...

On 9 Říj, 22:01, Milan Knížek <knizek.co...@volny.cz> wrote:
> Bart.van.Andel píše v St 08. 10. 2008 v 21:08 -0700:
>
> > Just curious, and trying to pinpoint the problem. Could you try saving/
> > converting those images as TIFF first, before loading them in Hugin?
> > As you mentioned, there might be something wrong with loading JPGs
> > with Hugin on your computer, but does loading TIFF work? If not, Exif
> > might not be the problem.
>
> I would also propose to first try if hugin can at least read some otherimagefile type like TIFF or PNG. If so, you can also try to re-save
> (not just copy) your camera JPEGs as JPEGs with another program or
> possibly strip EXIF data from the files.
>
> If you do not have a program for converting file types, try IrfanView
> (www.irfanview.cz- also in the Czech language), it has a batch
> processing functionality as described herehttp://www.irfanview.cz/tips.php#davkova_konverze
>
> There are also programs, which can remove metadata from JPEGs (i.e.
> EXIF, IPTC, etc.) - e.g.
>  http://www.rainbow-software.org/programs.html#JPG%20Cleaner
>
> best regards,
>
> Milan Knizek

Jaroslav.Beran

unread,
Oct 23, 2008, 11:08:29 AM10/23/08
to hugin and other free panoramic software
Latest update (more clear - I hope)

PC: Windows XP Pro SP3 (and all MS patches), Hugin 0.7.0 latest Win32
installer from sourceforge.net (full instalation)
1) Able to load JPEGs from my camera: NO (Could not decode image
message appears)
2) Able to load any other JPEGs (eg. saved from webpage): YES (HFOV
dialog appears)

Virtual PC: Windows XP Pro SP3 (without latest MS patches), Hugin
0.7.0 latest Win32 installer from sourceforge.net (full instalation)
1) Able to load JPEGS from my camera: YES (HFOV dialog appears)
2) Able to load any other JPEGs (eg. saved from webpage): YES (HFOV
dialog appears)

If it is EXIF issue, then (I guess) should not be possible to load
JPEGs from my camera even on Virtual PC.

Jaroslav
> > Yuv- Skrýt citovaný text -

Seb Perez-D

unread,
Oct 23, 2008, 11:25:08 AM10/23/08
to hugi...@googlegroups.com
2008/10/23 Jaroslav.Beran <beran.j...@gmail.com>:

> PC: Windows XP Pro SP3 (and all MS patches), Hugin 0.7.0 latest Win32
> installer from sourceforge.net (full instalation)
> 1) Able to load JPEGs from my camera: NO (Could not decode image
> message appears)
> 2) Able to load any other JPEGs (eg. saved from webpage): YES (HFOV
> dialog appears)

Only one other user has managed to reproduce your problem, and this
was because he had Cyrillic characters in the path. Have you any
"special" character in your path/image names? are the two Windows
versions the same in terms of regional/language/character set
settings?

Cheers,

Seb

Jaroslav.Beran

unread,
Oct 23, 2008, 5:10:20 PM10/23/08
to hugin and other free panoramic software
Seb,

it's excellent! I had no Cyrilic, but Eastern European characters (I'm
Czech). After I've removed them, I can load my images into Hugin.

Thanks a lot, you're great!

Best regards

Jaroslav

PS: Is it possible to get a lens data for Olympus C-765 UZ somewhere?
That HFOV dialog is a little bit annoying.

On 23 Říj, 17:25, "Seb Perez-D" <sbprzd+...@gmail.com> wrote:
> 2008/10/23 Jaroslav.Beran <beran.jaros...@gmail.com>:

Jaroslav.Beran

unread,
Oct 24, 2008, 5:25:14 AM10/24/08
to hugin and other free panoramic software
Thank you Dmitry - that was exactly what I was looking for - now
everything works almost perfectly...
Regards
Jaroslav
Reply all
Reply to author
Forward
0 new messages