jpeg file does not read in microsoft photo viewer

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jaffamuffin
Posts: 59
Joined: 2009-01-30T03:46:08-07:00

jpeg file does not read in microsoft photo viewer

Post by jaffamuffin »

Hi all

Have a bit of a strange problem --

http://81.143.7.209/0001.jpg

This file appears to be a valid JPEG and can be opened in many programs but not in Microsoft Photo Viewer (win 7)

If I just convert this to jpg using imagemagick, it then opens.

Identify -verbose does not give much away - does anyone have any thoughts as to why the file won't open without converting it first ?

Code: Select all

Image: 0001.jpg
  Format: JPEG (Joint Photographic Experts Group JFIF format)
  Class: DirectClass
  Geometry: 3534x2456+0+0
  Resolution: 300x300
  Print size: 11.78x8.18667
  Units: PixelsPerInch
  Type: TrueColor
  Endianess: Undefined
  Colorspace: RGB
  Depth: 8-bit
  Channel depth:
    red: 8-bit
    green: 8-bit
    blue: 8-bit
  Channel statistics:
    Red:
      min: 0 (0)
      max: 255 (1)
      mean: 245.263 (0.961816)
      standard deviation: 39.5806 (0.155218)
      kurtosis: 16.6777
      skewness: -4.23644
    Green:
      min: 0 (0)
      max: 255 (1)
      mean: 244.533 (0.958952)
      standard deviation: 33.5501 (0.131569)
      kurtosis: 18.6834
      skewness: -4.39209
    Blue:
      min: 0 (0)
      max: 255 (1)
      mean: 154.731 (0.606789)
      standard deviation: 17.5318 (0.0687522)
      kurtosis: 29.2785
      skewness: -4.11435
  Image statistics:
    Overall:
      min: 0 (0)
      max: 255 (1)
      mean: 161.132 (0.631889)
      standard deviation: 103.728 (0.406776)
      kurtosis: -1.22526
      skewness: -0.624474
  Rendering intent: Undefined
  Interlace: None
  Background color: white
  Border color: rgb(223,223,223)
  Matte color: grey74
  Transparent color: black
  Compose: Over
  Page geometry: 3534x2456+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: JPEG
  Quality: 76
  Orientation: Undefined
  Properties:
    comment: version=jxcrgb-20080428
    date:create: 2013-04-26T13:22:40+01:00
    date:modify: 2013-04-26T13:22:28+01:00
    jpeg:colorspace: 2
    jpeg:sampling-factor: 2x2,1x1,1x1
    signature: a7a477db713005a01b3ccaa07f359a395155cfd16d9cb4bde312244ff0f15658
  Artifacts:
    verbose: true
  Tainted: False
  Filesize: 451KB
  Number pixels: 8.68MB
  Pixels per second: 33.38MB
  User time: 0.260u
  Elapsed time: 0:01.260
  Version: ImageMagick 6.6.0-4 2012-05-02 Q16 http://www.imagemagick.org
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: jpeg file does not read in microsoft photo viewer

Post by snibgo »

In my laptop, Windows7, Windows Photo Viewer can open your file. I can't figure out how to see the version number of the software, but I keep the laptop fairly up to date.
snibgo's IM pages: im.snibgo.com
jaffamuffin
Posts: 59
Joined: 2009-01-30T03:46:08-07:00

Re: jpeg file does not read in microsoft photo viewer

Post by jaffamuffin »

interesting, thanks -- 2 systems with win 7 have failed to open the file. And your one has. Not sure how to tell version of the software either seems to be built in to win7. Seems to be quite a few people on the internet with a similar problem but no real solutions
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: jpeg file does not read in microsoft photo viewer

Post by snibgo »

I've just updated Windows 7 on my laptop. It's been a while, and needed doing. Now, when I try to read 0001.jpg with Windows Photo Viewer, I get the message "Windows Photo Viewer can't open this picture because the file appears to be damaged, corrupted or is too large."

And Windows Explorer can't show it.

I suppose Microsoft have tightened up their parsing of jpeg files, perhaps to remove a security vulnerability, perhaps incorrectly.

I don't have a problem with other jpegs. (Phew.)
snibgo's IM pages: im.snibgo.com
jaffamuffin
Posts: 59
Joined: 2009-01-30T03:46:08-07:00

Re: jpeg file does not read in microsoft photo viewer

Post by jaffamuffin »

Brilliant. a Photo Viewer that doesn't view photos. Thats' the same message I was getting. I can't find any info on what they have changed and why that jpeg seems to be a problem./deemed insecure. (although Internet Explorer opens it )
DominiqueMichel
Posts: 4
Joined: 2013-04-29T03:24:47-07:00
Authentication code: 6789

Re: jpeg file does not read in microsoft photo viewer

Post by DominiqueMichel »

snibgo wrote:I get the message "Windows Photo Viewer can't open this picture because the file appears to be damaged, corrupted or is too large."
The correct message should have been:
Windows Photo Viewer doesn't support large files. Buy the professional version!
jaffamuffin
Posts: 59
Joined: 2009-01-30T03:46:08-07:00

Re: jpeg file does not read in microsoft photo viewer

Post by jaffamuffin »

if I do

Code: Select all

convert 0001.jpg 0001_new.jpg
The file size is nearly the same and it opens in Photo Viewer
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: jpeg file does not read in microsoft photo viewer

Post by snibgo »

Moreover, IM's "identify" and exiftool show no significant differences between 0001.jpg and 0001_new.jpg. Both those programs can read 0001.jpg, and I suspect Microsoft software is giving up at a very early stage of reading.

Where did 0001.jpg come from? Perhaps the software that produced it creates a problem that most software ignores.
snibgo's IM pages: im.snibgo.com
jaffamuffin
Posts: 59
Joined: 2009-01-30T03:46:08-07:00

Re: jpeg file does not read in microsoft photo viewer

Post by jaffamuffin »

EMC Captiva Quickscan 4.5

Indeed, but either Quickscan is producing a faulty file that is readable by everything except Photo Viewer, or Photo Viewer is broken. Jusging by cursory internet searches there's a lot of people with similar problem and identical error message, presumably they aren't all using Quickscan therefore I'm betting that Photo Viewer is the problem here, more specifically the difference between the update that the previous poster made, although the question is why and perhaps which update?

Is it possible to check what hotfixes were applied?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: jpeg file does not read in microsoft photo viewer

Post by snibgo »

My Win7 update affected a file named c:\Windows\System32\WMPhoto.dll, so that looks promising. Or perhaps one of the *Codecs*.dll

Going by timestamps in \windows\system32:

Code: Select all

26/04/2013  16:38           221,184 UIAnimation.dll
26/04/2013  16:38           648,192 d3d10level9.dll
26/04/2013  16:38         1,424,384 WindowsCodecs.dll
26/04/2013  16:38           194,560 d3d10_1.dll
26/04/2013  16:38           333,312 d3d10_1core.dll
26/04/2013  16:38           245,248 WindowsCodecsExt.dll
26/04/2013  16:38         1,238,528 d3d10.dll
26/04/2013  16:38           296,960 d3d10core.dll
26/04/2013  16:38         1,887,232 d3d11.dll
26/04/2013  16:38         1,643,520 DWrite.dll
26/04/2013  16:38         1,175,552 FntCache.dll
26/04/2013  16:38           363,008 dxgi.dll
26/04/2013  16:38         2,565,120 d3d10warp.dll
26/04/2013  16:38         3,928,064 d2d1.dll
26/04/2013  16:38         2,776,576 msmpeg2vdec.dll
26/04/2013  16:38           465,920 WMPhoto.dll
26/04/2013  16:38           522,752 XpsGdiConverter.dll
26/04/2013  16:38         1,682,432 XpsPrint.dll
26/04/2013  16:40            77,312 tdc.ocx
26/04/2013  16:40        15,404,544 ieframe.dll
26/04/2013  16:40           526,336 ieui.dll
26/04/2013  16:40           136,704 iesysprep.dll
26/04/2013  16:40            48,640 mshtmler.dll
26/04/2013  16:40         3,958,784 jscript9.dll
26/04/2013  16:40            92,160 SetIEInstalledDate.exe
26/04/2013  16:40           135,680 IEAdvpack.dll
26/04/2013  16:40            12,800 msfeedssync.exe
26/04/2013  16:40            52,224 msfeedsbs.dll
26/04/2013  16:40           136,192 iepeers.dll
26/04/2013  16:40            51,200 imgutil.dll
26/04/2013  16:40           855,552 jscript.dll
26/04/2013  16:40            13,824 mshta.exe
26/04/2013  16:40            62,976 pngfilt.dll
26/04/2013  16:40           149,504 occache.dll
26/04/2013  16:40           173,568 ieUnatt.exe
26/04/2013  16:40         2,706,432 mshtml.tlb
26/04/2013  16:40        19,230,208 mshtml.dll
26/04/2013  16:40           599,552 vbscript.dll
26/04/2013  16:40           603,136 msfeeds.dll
26/04/2013  16:40           167,424 iexpress.exe
26/04/2013  16:40           144,896 wextract.exe
26/04/2013  16:40            97,280 mshtmled.dll
26/04/2013  16:40           102,912 inseng.dll
26/04/2013  16:40            27,648 licmgr10.dll
26/04/2013  16:40           247,296 webcheck.dll
26/04/2013  16:40         1,509,376 inetcpl.cpl
26/04/2013  16:40           270,848 iedkcs32.dll
26/04/2013  16:40           905,728 mshtmlmedia.dll
26/04/2013  16:40           235,008 url.dll
26/04/2013  16:40            67,072 iesetup.dll
26/04/2013  16:40            25,185 ieuinit.inf
26/04/2013  16:40            39,936 iernonce.dll
26/04/2013  16:40            51,712 ie4uinit.exe
26/04/2013  16:40            81,408 icardie.dll
26/04/2013  16:40           762,368 ieapfltr.dll
26/04/2013  16:40         1,400,416 ieapfltr.dat
26/04/2013  16:40           452,096 dxtmsft.dll
26/04/2013  16:40           281,600 dxtrans.dll
26/04/2013  16:40           441,856 html.iec
26/04/2013  16:40            53,248 jsproxy.dll
26/04/2013  16:40         2,240,512 wininet.dll
26/04/2013  16:40           216,064 msls31.dll
26/04/2013  16:40         1,365,504 urlmon.dll
26/04/2013  16:40           197,120 msrating.dll
26/04/2013  16:40         2,647,040 iertutil.dll
26/04/2013  16:40            89,600 RegisterIEPKEYs.exe
26/04/2013  16:40           226,304 elshyph.dll
26/04/2013  16:40         1,054,720 MsSpellCheckingFacility.exe
26/04/2013  16:45    <DIR>          catroot2
26/04/2013  17:18    <DIR>          DriverStore
26/04/2013  17:18    <DIR>          da-DK
26/04/2013  17:18    <DIR>          nb-NO
26/04/2013  17:18    <DIR>          ru-RU
26/04/2013  17:18    <DIR>          ja-JP
26/04/2013  17:18    <DIR>          zh-CN
26/04/2013  17:18    <DIR>          cs-CZ
26/04/2013  17:18    <DIR>          de-DE
26/04/2013  17:18    <DIR>          zh-TW
26/04/2013  17:18    <DIR>          es-ES
26/04/2013  17:18    <DIR>          sv-SE
26/04/2013  17:18    <DIR>          tr-TR
26/04/2013  17:18    <DIR>          fi-FI
26/04/2013  17:18    <DIR>          fr-FR
26/04/2013  17:18    <DIR>          nl-NL
26/04/2013  17:18    <DIR>          el-GR
26/04/2013  17:18    <DIR>          zh-HK
26/04/2013  17:18    <DIR>          hu-HU
26/04/2013  17:18    <DIR>          ko-KR
26/04/2013  17:18    <DIR>          pl-PL
26/04/2013  17:18    <DIR>          pt-PT
26/04/2013  17:18    <DIR>          it-IT
26/04/2013  17:18    <DIR>          pt-BR
26/04/2013  17:18    <DIR>          migration
26/04/2013  17:18    <DIR>          wbem
26/04/2013  17:18    <DIR>          drivers
26/04/2013  17:18    <DIR>          en-US
26/04/2013  17:20    <DIR>          catroot
26/04/2013  17:23           460,360 FNTCACHE.DAT
26/04/2013  17:29           818,152 PerfStringBackup.INI
26/04/2013  17:29    <DIR>          ..
26/04/2013  17:29    <DIR>          .
26/04/2013  17:29           135,014 perfc009.dat
26/04/2013  17:29           693,772 perfh009.dat
Control Panel gives me a list of all the KB updates; sadly I can't seem to copy-paste from the list, and there are too many to re-type.
snibgo's IM pages: im.snibgo.com
DominiqueMichel
Posts: 4
Joined: 2013-04-29T03:24:47-07:00
Authentication code: 6789

Re: jpeg file does not read in microsoft photo viewer

Post by DominiqueMichel »

DominiqueMichel wrote:The correct message should have been:
Windows Photo Viewer doesn't support large files. Buy the professional version!
I quote myself. It can be another explanation. Microsoft need all the time to reinforce the message "good software must be paid for, free software is crap". So all the accessories they bundle with Windows are, by design, crap. Or at best under-featured basic stuff that will have you wanting something a bit better.
Post Reply