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

Bug: Images get stretched in a weird way #527

Closed
maximmax42 opened this issue Jan 13, 2024 · 10 comments
Closed

Bug: Images get stretched in a weird way #527

maximmax42 opened this issue Jan 13, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@maximmax42
Copy link
Contributor

What happened?

The image viewer stretches images sometimes. My screen resolution is 1080p, Chrome's viewport is 1920x919.

Exhibit A

Input (1920x1920)

square-glitch-golden-3840x3840-460

Output

image

Exhibit B

Input (1080x1080)

test2

Output

image

Exhibit C

Input (1080x1920)

test

Output

image

Exhibit D

Input (2160x3840)

test3

Output

image

Version

latest (ghcr.io/diced/zipline or ghcr.io/diced/zipline:latest)

What browser(s) are you seeing the problem on?

Chromium-based (Chrome, Edge, Brave, Opera, mobile chrome/chromium based, etc)

Zipline Logs

No response

Browser Logs

No response

Additional Info

No response

@maximmax42 maximmax42 added the bug Something isn't working label Jan 13, 2024
@diced
Copy link
Owner

diced commented Jan 19, 2024

By the looks of it, sometimes it seems to be fine and then sometimes it's being stretched/shrinked?

@maximmax42
Copy link
Contributor Author

Yeah, pretty much. I can't see any rhyme or reason though.

diced added a commit that referenced this issue Feb 1, 2024
@diced
Copy link
Owner

diced commented Feb 1, 2024

should be fied f3634ef

@diced diced closed this as completed Feb 1, 2024
@maximmax42
Copy link
Contributor Author

It doesn't distort now, but big images don't fit the viewport now causing scroll bars to appear.

@diced
Copy link
Owner

diced commented Feb 2, 2024

i was able to get shrinking working with big images, but not with small (i thought this would be a fine trade off since i couldn't find out a way to make it work both ways).

Could you tell me what the image width and height was, I'll give it a try on my end.

@diced diced reopened this Feb 2, 2024
@maximmax42
Copy link
Contributor Author

maximmax42 commented Feb 3, 2024

Interesting, I just checked my test images on phone, and unlike on pc everything displays correctly.

https://stash.maximmax42.ru/naSAf.jpg
https://stash.maximmax42.ru/0gbjn.jpg
https://stash.maximmax42.ru/baPsL.jpg
https://stash.maximmax42.ru/bCY1f.jpg
Here are my 4 testing images, all are displayed with scroll bars on my 1080p monitor.

Now that I think about it, I didn't try to do force reload the viewing page after updating Zipline, maybe something from the old version remained. I'll test it later.

@maximmax42
Copy link
Contributor Author

Here are my 4 testing images, all are displayed with scroll bars on my 1080p monitor.

Correction: top link (1080x1920) shows up fine, rest have scroll bars.

I didn't try to do force reload the viewing page after updating Zipline, maybe something from the old version remained.

I tried. There definitely was some leftover stuff in cache, but it only fixed one image (see above).

@diced
Copy link
Owner

diced commented Feb 24, 2024

Here are my 4 testing images, all are displayed with scroll bars on my 1080p monitor.

Correction: top link (1080x1920) shows up fine, rest have scroll bars.

I didn't try to do force reload the viewing page after updating Zipline, maybe something from the old version remained.

I tried. There definitely was some leftover stuff in cache, but it only fixed one image (see above).

Tested these on my end, 2560x1440 monitor, top and bottom link seem to work (once the image is fully loaded it seems to conform to the viewport), but the middle two links seem to have a vertical scrollbar... no idea why this is happening lol, ill still try out different stuff

diced added a commit that referenced this issue Feb 27, 2024
@diced
Copy link
Owner

diced commented Feb 27, 2024

I think it's fixed here 5b88b59, I tried it on your images and it seems to be resizing just fine!

@diced diced closed this as completed Feb 27, 2024
@maximmax42
Copy link
Contributor Author

Yup, seems to work on my end as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants