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

"Full Resolution Image" Feature is not rendering as a Full Resolution Image #124

Open
oriuken opened this issue Jun 13, 2018 · 4 comments
Open

Comments

@oriuken
Copy link

oriuken commented Jun 13, 2018

Please provide you version information :

Dependency Version
ionic2 Ionic 3.19.1
angular 5.2.10
ionic-img-viewer 2.9.0

Hi guys, first of all thanks for the excellent work, really really helpful.

So, maybe I'm wrong with the concept of "Full Resolution Image" or just doing something wrong but when I use that feature, the opened image is not a full resolution image, it is resized to the container and the zoom i make is not a quality zoom because the size of the image is not the real size.

What I mean is that the "full resolution" image width/height is less than the original image and CSS transform:scale always starts in 1, instead of having the "full resolution" image with the real size and a starting scale of 0.x

Step 1)
step1
step2
step3

The real image is here

Is there a way to achieve this with the current version ?

@ZeroQool007
Copy link

same issue. I need a solution, please. thanks

@brassier
Copy link

brassier commented Oct 8, 2018

I'm in a similar boat. Any update on this issue?

@murshid1988
Copy link

Sigh. Same issue. I managed to find what causes the issue. Yet to come up with a proper solution. The thing is this impacts the entire idea behind this plugin.

Here is how this plugin works...

It basically uses the CSS's transform property's scale() function for the zoom. The issue is, there is a class which restricts the image to have the max-width as 100% and max-height as 100vh. So it's either the width or height whichever touches the edge of the screen first decides what resolution the image is going to be (Basically something like object-fit:contain).

Let's say if your image has 1000px width and 500px height. On a screen, with a 700px width, the image will have 700px width and 350px height.

Then when you pinch to zoom this image is being scaled, which results in blurry image even if you provide a high res image.

@rshah-ksgcorp
Copy link

@murshid1988 Have you find the solution for the issue?

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

No branches or pull requests

5 participants