# Slow Narrated web site reports

**URL:** <https://gramps.discourse.group/t/slow-narrated-web-site-reports/4929>\
**Category:** Help\
**Created:** [February 19, 2024, 6:09pm UTC](https://gramps.discourse.group/t/slow-narrated-web-site-reports/4929 "2024-02-19T18:09:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [February 19, 2024, 6:09pm UTC](https://gramps.discourse.group/t/slow-narrated-web-site-reports/4929/1 "2024-02-19T18:09:32Z")

</div>

Hi everyone!  
I have two questions about Narrated web site reports.

1. Web site is generated too slowly when media is turned on. My media objects stats are the next:

## Media Objects

Individuals with media objects: 8047  
Total number of media object references: 8728  
Number of unique media objects: 3794  
Total size of media objects: 8743 MB  
Missing Media Objects: 78

I have quite fast ssd, but anyway… As I understand, generator not only copies the files, it also makes something. Is it possiple make this “something” once for all media and then use prepared media-structure for simple and fast copy-paste procedure? Maybe it could be as a feature for future?

1. I receive exception when export can not find a media. Is it possible fix this issue to ignore missing media but not throw exceptions?

I see some discussions here [Thoughts on Narrated Web Report - #26 by jacrider](https://gramps.discourse.group/t/thoughts-on-narrated-web-report/4739/26), but not found answers to my questions there.

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [February 19, 2024, 6:23pm UTC](https://gramps.discourse.group/t/slow-narrated-web-site-reports/4929/2 "2024-02-19T18:23:32Z")

</div>

To speed up image generation install the package “python-magic” (in v5.1) or “python-imagesize” (in v5.2). See PR [#1597](https://github.com/gramps-project/gramps/pull/1597).

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [February 19, 2024, 6:47pm UTC](https://gramps.discourse.group/t/slow-narrated-web-site-reports/4929/3 "2024-02-19T18:47:46Z")

</div>

> [@Nick-Hall](#):
>
> install the package “python-magic” (in v5.1) or “python-imagesize”

One more question… I see my image\_size doest have logic with the new packages imports. Can I simply replace my image.py to this one [gramps/gramps/gen/utils/image.py at ec98f8dafae4a76f5916e40c93f9f924c997e115 · Nick-Hall/gramps · GitHub](https://github.com/Nick-Hall/gramps/blob/ec98f8dafae4a76f5916e40c93f9f924c997e115/gramps/gen/utils/image.py)? My gramps configuration (under ubuntu) is:  
python : 3.10.12  
gramps : 5.1.5  
gtk++ : 3.24.33  
pygobject : 3.42.1  
pango : 1.50.6  
cairo : 1.16.0  
pycairo : 1.20.1  
osmgpsmap : 1.0  
GExiv2 : 0.10  
ICU : not found  
PyICU : not found  
o.s. : linux  
kernel : 6.5.0-18-generic

So, as I understand your image.py should work for all 5.1.\* and 5.2.\* versions?

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [February 19, 2024, 7:17pm UTC](https://gramps.discourse.group/t/slow-narrated-web-site-reports/4929/4 "2024-02-19T19:17:08Z")

</div>

OK. It looks like this only applies to v5.2, not previous versions.

You can probably copy the whole file, but it would be safer just to copy and paste the `image_size` function.

Then in Ubuntu the package you need is called `python3-imagesize`.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [March 20, 2024, 7:17pm UTC](https://gramps.discourse.group/t/slow-narrated-web-site-reports/4929/5 "2024-03-20T19:17:58Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
