Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Nic Huang
Courses Plus Student 10,573 Pointsself-destructing app: unproportional image issue
In the Ribbit App, I think there is an issue with image viewing. When I try to view an image , it looks good when the the sent image is portrait ( height > width) . But when the sent image is landscape (width > height) , it looks really awful and unproportional. And making imageView aspectFit doesn't make it better. I think the problem comes from resizing image before uploading image, but I'm not sure how to fix it. Does anyone could point me a direction?? appreciate your help
3 Answers
Tuan Thi
2,938 Points[EDIT] misunderstood your question :D Yeah I found the same thing too
Ben Jakuben
Treehouse TeacherThis part of the app was simplified for the sake of focusing on other aspects. To appropriately display images you will need to analyze the image itself and change the orientation of the view based on its width and height.
Nic Huang
Courses Plus Student 10,573 PointsThank you Ben! I've solved it myself. Look forward to your next project!