Incorrect aspect ratio for thumbnail/preview
See original GitHub issueDescribe the bug Thumbnail/preview has incorrect aspect ratio for one of my images, as shown in screenshot below. The image is also linked below.
Photo/video (optional) that causes the bug See zip: https://www.dropbox.com/s/ee7vw513vl79nuv/testimg.tar.gz?dl=0
Screenshots Left thumbnail has correct aspect ratio. Right one (__a20180218_143832_dc8f44e06e4a.jpg) is incorrect. Both images are attached in link above.
Environment (please complete the following information):
- Browser: Firefox 84.0 (64-bit)
- OS: Ubuntu 20.04.1
Used app version:
- docker-nightly. See screenshot below for version.
docker-compose.yml:
version: '3'
services:
pigallery-db:
container_name: pigallery-db
image: mariadb
volumes:
- db-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=putsomethinginherethatyouwouldlikeasthepassword
- MYSQL_USER=pigallery2
- MYSQL_PASSWORD=pigallery2_pass
- MYSQL_DATABASE=pigallery2
pigallery2:
image: bpatrik/pigallery2:nightly-stretch
command: sh -c 'bin/wait-for pigallery-db:3306 -- --Server-Database-mysql-host=pigallery-db --Server-Database-mysql-username=pigallery2 --Server-Database-mysql-password=pigallery2_pass --Server-Database-mysql-database=pigallery2'
container_name: pigallery2
environment:
- NODE_ENV=production
volumes:
- "/mnt/data/tmp/PiGallery2/config:/app/data/config" # CHANGE ME
- "db-data:/app/data/db"
- "/mnt/data/tmp/pic_collection:/app/data/images/pic_collection" # CHANGE ME
- "/mnt/data/tmp/pic_collection2:/app/data/images/pic_collection2" # CHANGE ME
- "/mnt/data/tmp/PiGallery2/tmp:/app/data/tmp" # CHANGE ME
ports:
- 80:80
restart: always
volumes:
db-data:
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:20 (6 by maintainers)
Top Results From Across the Web
Generated media have incorrect aspect ratio
1 Answer 1 ... Under settings >> media, change the height attributes to 9999 , and untick Crop thumbnail to exact dimensions (normally...
Read more >How do I change the aspect ratio of a video preview thumbnail?
Right click on the file and select "get info" then paste it on the icon in the top left corner where my copied...
Read more >Incorrect aspect ratio of thumbnails on external drives
When I place pxd files somewhere on internal drive of Mac, thumbnails in the Finder will be displayed in the correct aspect ratio....
Read more >Aspect Ratio: Everything You Need to Know for 2022
Using the correct aspect ratios ensures your images are displayed as intended without distortion or resolution loss. Let's take a quick look ...
Read more >Displays images with incorrect aspect ratio
# Use an image CDN · # Check the CSS that affects the image's aspect ratio · # Check the image's width and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for detailed response. The new update seems to work well for sample images. I will update later if all my albums look okay (i moved few things; need to move files back to RPi).
I have no expertise in JS but this lib claims to be “fastest and most versatile JavaScript EXIF reading library’” : https://mutiny.cz/exifr/
Results below with new docker image + db reset. Some orientation cases are definitely fixed, while others are not, specially landscape ones. Images from https://github.com/recurser/exif-orientation-examples