Bug 453574 - Resized image to be fit to height and width
Summary: Resized image to be fit to height and width
Status: RESOLVED NOT A BUG
Alias: None
Product: Falkon
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-09 13:19 UTC by genghiskhan
Modified: 2023-03-17 12:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
full size (139.64 KB, image/jpeg)
2022-05-09 13:19 UTC, genghiskhan
Details
partially resized (150.71 KB, image/jpeg)
2022-05-09 13:20 UTC, genghiskhan
Details
Userscript as a temporary fix (429 bytes, text/javascript)
2023-03-16 20:14 UTC, genghiskhan
Details
Userscript as a temporary fix. Works only when 'cursor' is present. We can check the viewport against the image, but it will be too much for this userscript because it was made for demonstration (682 bytes, text/javascript)
2023-03-16 20:37 UTC, genghiskhan
Details
Script include checker background to notice transparency (1.12 KB, text/javascript)
2023-03-17 08:54 UTC, genghiskhan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description genghiskhan 2022-05-09 13:19:34 UTC
Created attachment 148676 [details]
full size

Resized image is never fit .

I think this is a bug, because in most, if not all, of the web rowsers I've used, the behaviour I expect is the one that they implement.
Comment 1 genghiskhan 2022-05-09 13:20:03 UTC
Created attachment 148677 [details]
partially resized
Comment 2 genghiskhan 2022-05-09 13:21:14 UTC
That's to say, scrollbars must not be seen when image is resized and fit to window
Comment 3 genghiskhan 2022-05-10 13:53:02 UTC
EnzoR
2022-05-10 10:59:06 UTC
https://bugs.kde.org/show_bug.cgi?id=452818

> Finally, @genghiskhan@gmx.ca, what's wrong with contents not fitting the screen area and requiring a scroller widget?

It's fine.  I just expect it to entirely fit and consequently see no scrollers.
Comment 4 0BADC0DE 2022-05-10 14:57:40 UTC
(In reply to genghiskhan from comment #3)
> EnzoR
> 2022-05-10 10:59:06 UTC
> https://bugs.kde.org/show_bug.cgi?id=452818
> 
> > Finally, @genghiskhan@gmx.ca, what's wrong with contents not fitting the screen area and requiring a scroller widget?
> 
> It's fine.  I just expect it to entirely fit and consequently see no
> scrollers.

I think you are cross-posting.
Comment 5 genghiskhan 2022-05-23 09:29:40 UTC
(In reply to EnzoR from comment #4)
> 
> I think you are cross-posting.

I did.  I was a misunderstanding.
Comment 6 genghiskhan 2023-03-14 14:32:29 UTC
From console:
element.style {
    -webkit-user-select: none;
    margin: auto;
    cursor: zoom-in;
}

Please add this:
height: 100vh; // 100% view height
Comment 7 genghiskhan 2023-03-14 14:34:45 UTC
Correction!

Please add these:
height: 100vh;
width: auto; // To keep proportion
Comment 8 genghiskhan 2023-03-16 20:14:17 UTC
Created attachment 157338 [details]
Userscript as a temporary fix
Comment 9 genghiskhan 2023-03-16 20:37:59 UTC
Created attachment 157339 [details]
Userscript as a temporary fix. Works only when 'cursor' is present.  We can check the viewport against the image, but it will be too much for this userscript because it was made for demonstration
Comment 10 genghiskhan 2023-03-17 08:54:55 UTC
Created attachment 157353 [details]
Script include checker background to notice transparency

I think this is my final attempt. It is not perfect
Comment 11 genghiskhan 2023-03-17 12:39:21 UTC
There's no problem with Falkon.
This issue happens because default zoom on page is set to more than 100%