Menu

#220 Opening Report - missing images when opened with browser

v.5.0
open
nobody
None
5
2024-01-15
2024-01-11
Daniele
No

Hi,

The Opening Report Tool is a really powerful feature but currently, when viewed in the browser, shows a weird behavoiur simce the images files requested for showing the pieces on the board are not in the correct place.

More in depth:
the <view html=""> option on the Opening Report Tool always writes in the /bin/log/TempOpeningReport.html file.
The gif images referred by the html needs to be in the /bin/log/bitmaps/ folder, while currently they are located in the /bin/bitmaps/ folder.</view>

Must be added that the /bin/log folder is created during the first program execution, therefore two potential approaches for solving this issue are:

1) duplicate the /bin/bitmaps/ folder as /bin/log/bitmaps/
2) change the default location for the TempOpeningReport.html file and accordingly add a copy of /bin/bitmaps/ folder

Must be noted that /bin/bitmaps/ folder and /bin/html/bitmaps/ folder are containing gif files with different names, therefore in case use of /bin/html/ folder as default report location the folders /bin/bitmaps/ needs to be merged with the /bin/html/bitmaps/

Discussion

  • Daniele

    Daniele - 2024-01-11

    EDIT: this issue was already present in previous scid versions

    Tested on Windows

     
  • Uwe

    Uwe - 2024-01-14

    Hi Daniele,

    this is a known behavior.
    The storage location of the html-file can be freely selected, the default value is also dependent on how SCID is started. You would therefore have to create the subdirectory "bitmaps" wherever the html-file is saved. In this directory you can use the graphics from bitmaps, bitmaps2 or your own graphics.
    I don't think it is suitable if the "bitmaps" directory is always copied there automatically. This may overwrite your own graphics stored in "bitmaps".
    From my point of view, it therefore makes more sense to retain the current behavior. If you always store the html-files in the same directory, then it is as you describe. You have to copy the graphic files there yourself once.
    Other options would be to include the graphic directly as inline in the htm- file (results in a larger html-file and less customizable) or to use UTF8 encoding with the chess symbols (not customizable).

     
  • Daniele

    Daniele - 2024-01-14

    HI Uwe,

    Thanks for explanation.
    Unfortunately I have never seen any customization point for the default html location in the GUI.

    I have to add that I'm trying to spread in my local chess community the great value the scid represent but tipically the vast majority of persons I have to deal do not have a "good attitude" with what is happening under the hood of software, and the procedure you've described is more for "software guys" rather than for all.

    From this point of view I think that it would be really important that the Opening Report Tool refers to a default html folder already equipped with all the .img files suitable for a properly working tool without any action from the user

     
  • Uwe

    Uwe - 2024-01-15

    Hi Daniele,

    i understand your argument and i think you are right: The images should be copied to the place where the html-file is stored.
    If someone wants to customize the images, he can do this at the source in SCID.

     

Log in to post a comment.