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

How to get a larger comparison box? #95

Open
Danman800 opened this issue May 26, 2018 · 3 comments
Open

How to get a larger comparison box? #95

Danman800 opened this issue May 26, 2018 · 3 comments

Comments

@Danman800
Copy link

Hello,

I am pretty new to this and I want to use this script for comparison of pictures. I want the original size but the script is only showing the pictures in a small box. How do I get the original picture size?

Thanks!

@Danman800
Copy link
Author

I managed to get the box the size of the screen/browser but the part of the picture larger than the screen is cut off. How can I fix this?

@Ezra-Siton-UIX
Copy link

Ezra-Siton-UIX commented Aug 13, 2018

The plugin doesn't change image-Size (Only position)
Use regular css for this.

One idea:

.reponsive-img{
   width: 100%;
   height: auto;
}

https://www.w3schools.com/howto/howto_css_image_responsive.asp

https://www.w3schools.com/cssref/pr_dim_width.asp
https://www.w3schools.com/tags/att_img_width.asp

@chris-aeviator
Copy link

chris-aeviator commented Mar 14, 2019

It would be very useful to set an image size in the plugin's config!!!

EDIT:

I looked into the src & it seems like twentytwenty is supposed to take the img width, but it's somehow not for me:

container
2019-03-14-155225_622x487_scrot

where the actual image size is 569 x 376

EDIT 2:

when resizing the image container via css, the clip-path value is not updated correctly

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

No branches or pull requests

3 participants