-
Notifications
You must be signed in to change notification settings - Fork 12
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
darvari
wants to merge
3
commits into
sailfishos-patches:master
Choose a base branch
from
darvari:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "Zoom gallery-images beyond display resolution", | ||
"description": "Allow zooming of images in gallery beyond display resolution - especially usefull for zooming small images like boarding-pass-QR-codes.", | ||
"category": "gallery", | ||
"infos": { | ||
"maintainer": "darvari" | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
maintained/gallery-zoom-beyond-display-resolution/unified_diff.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- original/usr/share/jolla-gallery/pages/FlickableImageView.qml 2014-09-30 11:22:03.000000000 +0200 | ||
+++ patched/usr/share/jolla-gallery/pages/FlickableImageView.qml 2014-09-30 11:14:51.000000000 +0200 | ||
@@ -147,8 +147,8 @@ | ||
enableZoom: !view.moving | ||
|
||
active: mediaItem.active | ||
- maximumWidth: model.width | ||
- maximumHeight: model.height | ||
+ maximumWidth: model.width * 10 | ||
+ maximumHeight: model.height * 10 | ||
|
||
onClicked: view.clicked() | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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:
Ok, I did.
I wrote:
but I don't like the result.
Below is a link to my owncloud, showing a video with all 3 variants:
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