Dimillian / Dimillian/IceCubesApp

Feature request: Limit image size to fit on screen in posts

Open
#1,701 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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)
IMG_08FD750918CF-1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.