Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gallery: zoom small images beyond display resoulution #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

darvari
Copy link

@darvari darvari commented Sep 30, 2014

OK, this is my first time working with github (other than doing "git clone http...") I never did fork a project.

I wrote a patch for the gallery to enable more zooming - please also see here:
https://together.jolla.com/question/4416/gallery-zoom-beyond-display-resolution/#56483

Is this the right place and way to do it ? I mean forking sailfishos-patches-advanced and pull-request?

Greetings

Darvari

- maximumWidth: model.width
- maximumHeight: model.height
+ maximumWidth: model.width * 10
+ maximumHeight: model.height * 10
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't look good for me. better replace it with Math.max(model.width, view.width)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am 30.09.14 12:51, schrieb CODeRUS:

it doesn't look good for me. better replace it with
Math.max(model.width, view.width)

Ok, I did.
I wrote:

            maximumWidth: Math.max(model.width, view.width)
            maximumHeight: Math.max(model.height, view.height)

but I don't like the result.

Below is a link to my owncloud, showing a video with all 3 variants:

  1. original style
  2. my patch with * 10
  3. your suggestion (if I understand it right)

You will notice that variant 3 creates an unwanted rescaling which does
not respect the aspect ratio.

Besides I want to zoom really a lot.

And my patch is quite ugly, but it works and has only one minor
side-effect: you can not zoom out to original resolution, that means if
image is smaller than screen you can not view it at
1 pixel image = 1 pixel on screen.

Darvari

@darvari
Copy link
Author

darvari commented Sep 30, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants