Re: resolution independent px

Jorge Arellano Cid <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
On Fri, Jan 16, 2015 at 08:50:13AM +0100, Johannes Hofmann wrote:
> Hi,
> 
> attached is a patch that would enable resolution independent
> handling of px as described in [1].
> It would result in roughly equally sized images on high and low
> resolution devices at the cost of a higher overhead for additional
> image scaling.

  A long time ago, image scaling was relatively low overhead,
but since dillo got correct gamma correction, it became much
more expensive.

  I remember testing this and the difference was noticeable.
It was left anyway because the amount of scaled images
in the average web page is low.


> Is there a need for something like this?

  I don't know...

> Should it be enabled via config option or should we do it
> automatically if we detect a DPI value that differs a lot from
> the standard value?

  For me, it is hard to say without knowing the main use of it.
What I do know is that our scaling is CPU intensive, so I tend
to have it off unless necessary.

  Another way around is to optimize our gamma correction algorithm
with integer arithmetic. An option that was not taken at the time
because of the above stated reasons.

  HTH.

-- 
  Cheers
  Jorge.-
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.