[haiku-commits] Re: haiku: hrev47177 - in src: kits/media apps/showimage

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 28 Apr 2014 08:03:05 +0000

28 avril 2014 09:39 "Axel Dörfler"  a écrit:


>> On April 28, 2014 at 7:45 AM Adrien Destugues
>> wrote:
>> Ok, here is another use case: I'm viewing a book that was scanned as multiple
>> jpeg files.
>> 
>> 
> While that sounds like a convincing use case, reading a book that was scanned
> from multiple JPEG files should actually be a very rare use case. I agree that
> using ShowImage is annoying in that case.
> 

I don't think it's that uncommon. For example most stuff at 
http://www.abandonware-magazines.org is using this format, and I think it's 
also common to see comic books distributed this way.


> I think you're still affected by the translation error :-)

That and the fact I was looking for an option to change the behavior for big 
images, not small ones. But ok, I see what it's meant to do, now.

I also find it strange that when the option is enabled, resizing the window 
doesn't change the image zoom factor so it still fits te window. But that's 
another problem...

>> [...] and what I really want is the "original size" and "fit to window" zoom
>> buttons to retain their
>> state when moving to the next image in the same folder.
>> 
> I hope you don't mean that literally, thinking of queries that would make the
> usage really confusing.

 I meant anything that causes the previous/next buttons to be enabled, so yes, 
that would include queries.

> Anyway, I could imagine that a (session) sticky button could work out nicely.
> I'm not sure it should be the default, though.
> Maybe shift-click or middle or right click to make it sticky. I don't think
> functionality like this has to be obvious, but I agree that it can be handy to
> have it around.
> 

Ok, I'll implement it that way, then.

> It can be useful when you have very small images on a high resolution monitor.
> Think of old game emulators that enlarge the bitmaps a number of times to make
> the game playable on modern systems. It has its uses, too. Even for people 
> that
> do not wear glasses :-)

I happen to sometime view images from 8-bit computers, and I must say the 
results in ShowImage are not very good. The high-quality zoom results in very 
blury images, but the fast one distorts the pixels when the zoom factor is too 
small and non-integral. So if you zoom an image by 1.5 or 2.5, you get 
alternated pixel row/columns of size 1 and 2, or 2 and 3, respectively, or a 
blurry image. I think in such cases, it would be better to restrict it to 
integer scale factors (1x, 2x, 3x, or more), to avoid this annoying distortion. 
And fitting the image to the window doesn't do that.

Other related posts: