Slow performance after loading images in header and footer
Posted: Wed Aug 24, 2016 6:43 am
Hi There,
I've got a problem that occurs with one of our clients using large images in the header and footer of their documents. When the document is opened, typing a simple sentence can take up to a minute as the keystrokes are slowed down considerably.
The client requires the high quality images so that it looks good when printed.
I can reproduce this problem using RichViewActionsTest by doing the following:
1. Create a new document
2. Type a sentence into the body. (ie. "Test Test Test"
3. Double click on the header and insert a large image.
(The header in our case is 6201x1240 pixels, saved at image quality 10, resulting in a file of size 408KB)
4. Double click on the footer and insert a large image.
(The header in our case is 8858x827 pixels, also saved at image quality 10, resulting in a file of size 346KB)
5. At this stage there's no issue. Double clicking in the body and typing "Test Test Test" works fine.
6. Save the file as RVF
7. Click RichViewActionsTest and reopen
8. Open the file just saved
9. Type a sentence into the body
Each character typed takes 1-3 seconds to appear.
Interestingly enough if I follow the same steps as above, but insert the same two pictures into the body instead, there's no performance issue.
Note that when I reduced the image sizes to a quarter of the size (using photoshop) and then inserted them in, it was still slow.
I'm using Version 7.3.2 of ScaleRichView with Version 16.7.1 of RichView on Delphi 2010. I can upload an example RVF if that helps.
Apart from asking the client to reduce the image size or changing the format, can you recommend any suggestions, settings, workarounds, fixes or tweaks?
Kind Regards,
Dave
I've got a problem that occurs with one of our clients using large images in the header and footer of their documents. When the document is opened, typing a simple sentence can take up to a minute as the keystrokes are slowed down considerably.
The client requires the high quality images so that it looks good when printed.
I can reproduce this problem using RichViewActionsTest by doing the following:
1. Create a new document
2. Type a sentence into the body. (ie. "Test Test Test"
3. Double click on the header and insert a large image.
(The header in our case is 6201x1240 pixels, saved at image quality 10, resulting in a file of size 408KB)
4. Double click on the footer and insert a large image.
(The header in our case is 8858x827 pixels, also saved at image quality 10, resulting in a file of size 346KB)
5. At this stage there's no issue. Double clicking in the body and typing "Test Test Test" works fine.
6. Save the file as RVF
7. Click RichViewActionsTest and reopen
8. Open the file just saved
9. Type a sentence into the body
Each character typed takes 1-3 seconds to appear.
Interestingly enough if I follow the same steps as above, but insert the same two pictures into the body instead, there's no performance issue.
Note that when I reduced the image sizes to a quarter of the size (using photoshop) and then inserted them in, it was still slow.
I'm using Version 7.3.2 of ScaleRichView with Version 16.7.1 of RichView on Delphi 2010. I can upload an example RVF if that helps.
Apart from asking the client to reduce the image size or changing the format, can you recommend any suggestions, settings, workarounds, fixes or tweaks?
Kind Regards,
Dave