Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Isn’t that easily available via search engines tho? I mean we got thaught that shit in high school... not like I remember it from the top of my head, but c’mon mate you can do it’
-
@100110111 there are a million and a half ways to do it. This is not a code issue. I can figure out code. What I am missing is... when and why. When should I clip the image? When should I display the full thing? How should I react to the screen flipping? What if the user makes the window larger? These questions most likely will not get a good answer immediately because it’s not so technical...
Though I could be just completely wrong and there is a formally accepted technique to al of this. -
I am not a designer, but here is what I did on a recent project of mine (for desktop). This is for a main image of a post.
img preferred width = post width
img max height = x% of screen height (or maybe a fixed value)
if img too big for max height, scale to fit (in css I used object-fit: contain)
I don't know about mobile, but this worked for me -
Sylum94yUmmm...Just see what happens with a different well-known product and do that? That's what I would do I guess
Related Rants
All app/web layout designers, I need your help with layouts for my app. I am struggling with a very specific thing: image sizes. What are the general guidelines for touch devices and windowed programs? Should I eyeball the max width and height? What if it's on desktop and I am making the window larger / smaller?
Any help is absolutely appreciated, I had perfect success in all of what I worked on in the app until now except this. I just can't get it right.
question
halp pls
images are a pain
layout
devrant rewrite
swift