> Anders Ekberg wrote:
>>> >> Š The picture is scanned to pdf with 300 dpi
>>> >> resolution. When cropping and saving in Preview to a png with 300 dpi and
>>> >> then inserting this picture in LyX (with insert graphic) the output is
>>> >> fine (i.e. with a resolution of 300 dpi which is sufficient for my
>>> >> purposes). On the other hand when I copy in Preview and then paste in >>>
>>> >> the resolution becomes low (I would guess about 150 dpi, which is
>>> >> incidentally the default resolution when saving png:s in Preview, so the
>>> >> problem well may be on the copying and not the pasting side).
>>> >> 
>>> >> So, in short, my question is: Which resolution does LyX use to save
>>> >> graphics (on Mac) and is there a way to change it?
>> > 
>> > LyX does not scale the graphics. It uses whatever is on the clipboard, but
>> > maybe there is some scaling happening in qt. Did you try to paste the
>> > graphics in a different application, e.g. gimp? If that does not preserve
>> > the resolution the problem is with copying the graphics to the clipboard.
>> > Otherwise it is in LyX or qt, and one would need to debug.
> Good suggestion Georg.
> Attached are pdfs from LyX and from Word. Same clipping from Preview. The
> resolution in the LyX-produced file is much less. So something happens when
> LyX pastes the clip and I save it as a png in that process. I would consider
> this a bug (if LyX or qt is another issueŠ).
>>> >> I also tried on Windows (copying from Acrobat Reader) and there the
>>> >> resolution was good, but the dimensions distorted (compressed in height).
>> >
>> > Strange. Does the distortion come from different x/y scaling factors in
>> LyX, 
>> > or is it also visible in the created .png file?
>> >
>> > Georg

The windows skewness seems to be related to that file. Tried a new one now
and it works. (Could have be due to the fact that the only selection I can
find in Windows reader on Windows is select all, so the entire [one page]
file was copied).

The image pasted from LyX is 72 dpi. I suspect that the copying and saving
via LyX somehow mixes up the file resolution and the resolution on the
screen. Can't really be the fault of Preview since it works in Word, so
should be a qt or LyX bug.

Reply via email to