Dimillian / Dimillian/IceCubesApp
Feature request: Limit image size to fit on screen in posts
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 7.1k
- Forks
- 720
- PR merge metrics
- No merged PRs in 30d
Description
On iPad, posts that contain 1 image are often display "as large, or as wide, as possible". That is, a single image will be the entire width of the post area, no matter the height of the image. This has the effect of sometimes making the image take up the entire screen in portrait, or even more than 1-screen height in landscape (how I often use it). So I can't see the whole image without scrolling. Sure I can open it in a new overlay, but sometimes that really isn't worth it for images I don't care about and want to keep scrolling past. I want to see the whole thing, but it's not an image or post I care to engage with.
I would like a setting to be able to set a maximum image size to display an image, inline on a post. For example if my iPad resolution was 1024x768, the max image height could be set to "700pt/px" so that the image would be scaled down (aspect fit) to that max height I entered. I could even set it to "300pt" and make all images really small. Or perhaps it's set by percentage of screen height, so it's a slider from 100% screen height to ~10% maybe. Additionally, maybe that should also include a max width option. In a perfect world, IceCubes could automatically set the max height/width based on the device screen size, and the orientation I'm holding the device (auto switch between P/L).
If this somehow is already an advaned feature I'm unaware of, tag me with instructions. Thanks!
Screenshot of how I often see images larger than the viewport (v1.7.1)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, entry point, or test is named. Start by locating the SwiftUI view that renders inline post images, then review the screenshot and the proposed height, width, percentage, and orientation options. Done means the chosen inline-image sizing behavior is implemented for iPad without requiring users to open an overlay.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100