texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Bad size with image printing


From: Joris van der Hoeven
Subject: Re: [Texmacs-dev] Bad size with image printing
Date: Wed, 26 Feb 2014 20:01:13 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

Hi,

Yes, the scaling factor we are using at present may not be what you want.

I am interested to hear any specific suggestions on what the default size
of an included picture should be on paper.

Best wishes, --Joris


On Thu, Jan 30, 2014 at 05:38:24PM +0100, François Poulain wrote:
> Hi,
> 
> Working on converters, I had some ugly behavior with image rendering.
> 
> It appears that, inserting an image into TeXmacs leads, by default to a
> bad typesetting because the image is stretched by a factor approx 5/3.
> 
> To reproduce it, copy paste :
> 
> <image|http://upload.wikimedia.org/wikipedia/meta/6/6d/Wikipedia_wordmark_1x.png||||>
> 
> In typeset_image () in src/Typeset/Concat/concat_active.cpp, I don't
> understand the line 318 :
>  double pt= ((double) env->dpi*PIXEL) / 72.0;
> 
> i)   env->dpi is related to font's DPI and I don't know why should it
>      imply image resizing.
> ii)  I wonder if magnification should not play a role here. 
> iii) I suppose that PIXEL is the ratio tmpt / px.
> iv)  If we should translate the size from pixels to tmpt, I wonder why
>      the calculus "pt= PIXEL * zoom_factor", following the
>      documentation (length.en.tm), is wrong (at least, it gives a
>      result very different than the current result).
> v)   By the way, current calculus on my computer gives pt= 2133.33,
>      (with default DPI= 600 and PIXEL= 256) whereas the "wanted size"
>      of the picture is obtained with a pt approx 1280.
> 
> Any suggest about this ?
> François
> 
> -- 
> François Poulain <address@hidden>
> 
> _______________________________________________
> Texmacs-dev mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/texmacs-dev



reply via email to

[Prev in Thread] Current Thread [Next in Thread]