-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
Image thumbnails of newly uploaded images are always shown in a landscape frame when using layout 1 or 2; portrait images get clipped #1388
Comments
Confirmed. Probably another regression after #1336. |
I take it back. This bug predates #1336. Still, an annoying regression. |
@doclbn I've got a fix pending; hopefully it won't be more than a day or so before it's merged, but if you are in a hurry, you can replace the file Unfortunately, while the intermediate image sizes generated during upload are fine, the affected images have wrong size information in the database and applying the patch won't magically fix that. Conceptually, the easiest fix would indeed be to reupload them. If you want to avoid it, you will need to manually fix the broken entries in the database. You'll need to collect the |
@kamil4 Thanks for this extremely quick response and insightful information. Sooooooo if I get that right, i'd might go about Thx again, |
@kamil4 mmkay, after reading the actual code of your fix I see that the swapped |
Yes, it should be possible to identify them algorithmically by inspecting the |
Thanks yet again, that was exactly what I was hoping to find =) |
Detailed description of the problem [REQUIRED]
Since upgrade to 4.5.1 (from 4.5.0, iirc...), thumbnails of newly imported images are always shown in a landscape frame when using layout 1 or 2.
How can I get correctly oriented thumbnail frames with undistorted, unclipped images?
-> It would be great if can this be fixed without re-importing the images (I imported >1k since 4.5.1 =)
Steps to reproduce the issue
While analyzing this, I realized when switching layout (0/1/2, regardless), image thumbnails are always square showing the whole image distorted to a square until I hit F5 (browser refresh).
Additional information:
When upgrading to a very freshly released v4.5.1, the upgrade failed on a database migration step and I had to do a composer rollback. Another attempt using a newer build a few days later was successful.
Screenshots
Screenshots of original images:
Always landscape oriented thumbnails (using Layout 1) - portrait image gets clipped:
Thumbnail frame after using Rotate clockwise feature:
Information on portrayed antenna:
Output of the diagnostics [REQUIRED]
Browser and system
Lychee running on Linux 4.9.0-18-amd64 #1 SMP Debian 4.9.303-1 (2022-03-07) x86_64
Images viewed with Microsoft Edge Version 103.0.1264.44 (Official Build) (64-Bit) on Windows 8.1 Pro
The text was updated successfully, but these errors were encountered: