none
Failed to view png and gif files using WEC7 Photo Viewer RRS feed

  • Question

  • Hi All,

    I am evaluating WEC7 on Mistral OMAP EVM Rev G with AM3715 and I find that png and gif format files cannot be viewed using Photo Viewer. All Still Image Decoders are selected in Catalog. Have you guys encountered the same problem?

    Thanks,

    James

    Thursday, February 9, 2012 7:30 PM

Answers

  • Please check what is the default prgram to open the png and gif format in the registry. If not specified you might need to specify the associated program.
    • Marked as answer by dsl.ca Friday, February 10, 2012 10:28 PM
    • Unmarked as answer by dsl.ca Friday, February 10, 2012 10:28 PM
    • Marked as answer by dsl.ca Friday, February 10, 2012 10:28 PM
    Friday, February 10, 2012 7:04 PM
  • Hi sarmapranjal,

    By modifying the registry, both png and gif files are recognized by OS and Photo Viewer is launched when double click the icon.

    Here is what I did:

    ;-------------------------------------------------------------------------------
    ;
    ;   PNG Files (*.png)
    ;
    [HKEY_CLASSES_ROOT\.png]
    @="pngfile"
    "Content Type"="image/png"

    [HKEY_CLASSES_ROOT\pngfile]
    ;"PNG Image"
    @=mui_sz:"urlmon.dll,#9012"

    [HKEY_CLASSES_ROOT\pngfile\shell\open\command]
    @="pviewer.exe %1"

    [HKEY_CLASSES_ROOT\pngfile\DefaultIcon]
    @="pviewer.exe,-100"

    [HKEY_CLASSES_ROOT\pngfile]
    @="Png File"
    "EditFlags"=dword:00010000

    [HKEY_CLASSES_ROOT\giffile\shell\open\command]
    @="pviewer.exe %1"

    [HKEY_CLASSES_ROOT\giffile\DefaultIcon]
    @="pviewer.exe,-100"

    [HKEY_CLASSES_ROOT\giffile]
    @="Gif File"
    "EditFlags"=dword:00010000
    ;-------------------------------------------------------------------------------   

    Thanks again for your help,

    James

    • Marked as answer by dsl.ca Friday, February 10, 2012 10:28 PM
    Friday, February 10, 2012 10:28 PM

All replies

  • I even have a bigger problem. I used the BSP from TI (publicaly available BSP from TI at TI's website)

    Photo viewer, music player and video player are all not working at all. It gives exceptions.

    --- Misbah


    Senior Design Engineer T.E.S Electroni Solutions (Bangalore-India) www.tes-dst.com email-misbah.khan@tes-dst.com

    Friday, February 10, 2012 6:38 AM
  • Please check what is the default prgram to open the png and gif format in the registry. If not specified you might need to specify the associated program.
    • Marked as answer by dsl.ca Friday, February 10, 2012 10:28 PM
    • Unmarked as answer by dsl.ca Friday, February 10, 2012 10:28 PM
    • Marked as answer by dsl.ca Friday, February 10, 2012 10:28 PM
    Friday, February 10, 2012 7:04 PM
  • Hi sarmapranjal,

    By modifying the registry, both png and gif files are recognized by OS and Photo Viewer is launched when double click the icon.

    Here is what I did:

    ;-------------------------------------------------------------------------------
    ;
    ;   PNG Files (*.png)
    ;
    [HKEY_CLASSES_ROOT\.png]
    @="pngfile"
    "Content Type"="image/png"

    [HKEY_CLASSES_ROOT\pngfile]
    ;"PNG Image"
    @=mui_sz:"urlmon.dll,#9012"

    [HKEY_CLASSES_ROOT\pngfile\shell\open\command]
    @="pviewer.exe %1"

    [HKEY_CLASSES_ROOT\pngfile\DefaultIcon]
    @="pviewer.exe,-100"

    [HKEY_CLASSES_ROOT\pngfile]
    @="Png File"
    "EditFlags"=dword:00010000

    [HKEY_CLASSES_ROOT\giffile\shell\open\command]
    @="pviewer.exe %1"

    [HKEY_CLASSES_ROOT\giffile\DefaultIcon]
    @="pviewer.exe,-100"

    [HKEY_CLASSES_ROOT\giffile]
    @="Gif File"
    "EditFlags"=dword:00010000
    ;-------------------------------------------------------------------------------   

    Thanks again for your help,

    James

    • Marked as answer by dsl.ca Friday, February 10, 2012 10:28 PM
    Friday, February 10, 2012 10:28 PM
  • In addition to including the Windows Media Player application such as "Music Player", "Photo Viewer" and "Video Player", you need to include the necessary Codecs to support the type of media file you are attempting to launch.

    For example, to play an MP3 file, you need to include the MP3 Codec from the catalog.

    To display a JPG image file, you need to include the JPG Decoder from the catalog.


    Samuel Phung ICOP Technology Inc. http://www.embeddedpc.net

    Friday, February 10, 2012 11:29 PM