Page 1 of 1

rvrtfSaveJpegAsJpeg

Posted: Tue Jul 27, 2010 12:52 pm
by Jan
If I export a document in ScaleRichViewEdit as RTF and use rvrtfSaveJpegAsJpeg in RTFOptions, the Jpeg shown in other size if opened in MS Word.

ScaleRichViewEdit:
Image

MS Word:
Image

Posted: Tue Jul 27, 2010 3:12 pm
by Sergey Tkachenko
It may depend on Jpeg. TRichView and ScaleRichView ignores the resolution specified in image files, while MS Word uses it to scale pictures.
Can you send me this jpeg image to richview at gmail dotcom?

What version of ScaleRichView and TRichView do you use?

Posted: Tue Jul 27, 2010 3:31 pm
by Jan
Yes, I can send a sample.

Posted: Tue Jul 27, 2010 5:53 pm
by Sergey Tkachenko
Received. As I thought, the problem is in resolution specified in jpeg itself (72 dpi).
Since 96 dpi is assumed in Windows, when you insert this picture in MS Word, it scales it by 96/72.
TRichView ignores internal resolution of images, so it displays it without scaling.

There is a way to store RTF so that jpeg will have the same size in MS Word like in TSRichViewEdit. Will be in the next update.