[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: new(?) IDiff quirks

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-09-17 20:19:33 CEST

Lorenz wrote:

>>> 2) start-up the application, switch to overlap mode and zoom in (mouse
>>> wheel or button).
>>> The images are no longer matching, due to different origins and zoom
>>> factors.
>> The images keep their original zoom factor when zooming and when their
>> not linked together.
>
> Ok, forgot to mention that the images where linked (but not "fit
> together").

linked means their positions are linked together (if you move/drag one
image, the other one moves too).

> But it also seams to happen only with large images, as I was not able
> to reproduce the effect with small (200x150) ones.
>
> So I scaled-up my test image to 3000x2250 (dots.gif) and tried again.
> The effect is noticable now, but not as badly as with my original
> images (dots_diff.jpg).
>
> Seams to depend an the image proportions also. Resizing the image to
> 3000x2000 (dots_3000x2000.gif) shows the effect nicely
> (dots_diff_3000x2000.jpg).
>
> Screen resolution is 2560x1024 (dual screen 1280x1024) by the way, but
> the IDiff window is "full-screened" to one monitor only (which one
> doesn't matter).
>
> To reproduce: start IDiff with two copies of the image, go to full
> screen, switch to overlap mode ("fit images together" disabled), then
> press "+".

When you start TortoiseIDiff, both images are zoomed to fit the window.
Which means they're zoomed separately, and also centered in their view
window. If you now switch to overlap mode (without having "fit images
together" activated), the images are overlapped as they are (with their
different zoom factors).

I don't know why you think this is an issue: there's a setting "fit
images together" for a reason.

>>> This seems to be more noticeable when in full-screen mode.
>>>
>>> This can be fixed by activating "fit images together".
>>> It stays ok even when is "fit images together" deactivated again.
>> If you activate "fit images together", then the image zoom factors are
>> also fit together. When you deactivate it again, the zoom factors don't
>> change back - that's why you think it got "fixed".
>
> With "fit images together" prior to switching to overlapp mode the
> effect does not appear.

Exactly: then the zoom factor of the images are calculated so that they
don't fit exactly into their views but so that their sizes match
together (as good as possible). In two-pane view you won't usually
notice a big difference in the zoom factors of the images because 'fit
to window' and 'fit images together' have both similar zoom factors, but
not identical. That's why you'll notice the effect more in overlap mode
and even more when you zoom out.
You could notice the effect even more if you had an image which is four
times wide than high, and the other image four times higher than wide.

>>> 3) when switching between "side by side" and "overlap" mode the images
>>> are always "fit to window". Could that please be changed to preserve
>>> the actual zoom-factor (perhaps accounting for the smaller/larger
>>> window size)?
>> Changed it so the "fit to window" now only happens if the images are
>> linked together.
>
> Hm, no, that does not do the job for me.
> I'm using IDiff to compare schematics.
> I would like to be able to switch between overlapp (if possible with
> diff mode) and side by side view, without losing the position an zoom
> factor.

Ok, please try the next nightly build. Should be much better now.

I've renamed the 'linked' option to 'linked positions', and the 'fit
together' to 'fit image sizes'. I think that should clear things up on
what those options actually do.

> Some additional observations:
>
> a) Alpha blend slider does not disappear/reappear when switching
> between alpha blend and diff modes (not until zooming, for instance).

Fixed in revision 10646.

> b) start IDiff with the dots_3000x2000.gif. Switch to overlapp mode
> and back. The zoom factors do not match any longer (regardless of "fit
> images together" setting).

Should be fixed now.

> c) mouse wheel zooming only works after clicking in one of the images
> (focus?).

Yes, that's a focus issue.
But 'fixed' in revision 10647.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Sep 17 20:19:44 2007

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.