rvrtfSaveJpegAsJpeg

General TRichView support forum. Please post your questions here
Post Reply
Jan
Posts: 14
Joined: Sat Dec 05, 2009 4:06 pm

rvrtfSaveJpegAsJpeg

Post 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
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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?
Jan
Posts: 14
Joined: Sat Dec 05, 2009 4:06 pm

Post by Jan »

Yes, I can send a sample.
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply