Hi @all,
Since my first day on Diaspora I have wondered why images displayed in the lightbox are so small. They do not differ much from the in-stream version and sometimes it’s hard to see the tiny parts of a picture.
To get a full-sized version of the image there is a little trick: You take the image URL and remove the “scaled_full” in front of the image filename, paste it in your address bar again and you get the original image file.
This trick is not well-known and I guess some users have difficulties to enlarge pictures.
My idea is to show a full-sized version (original version) of the image in the lightbox instead of the smaller scaled_full version. There is more than enough space to give images the space they need. We will keep having the scaled_full version in the stream as small footprint preview, but if you open the lightbox on that picture you will get the full version on your screen.
To prevent parts of the image being cut off due to small screen size, the lightbox will resize the full version to a size which fits the screen in width. This will happen dynamically and CSS-based.
There’s a short screencast on my server to show my finished work: https://cloud.trashserver.net/public.php?service=files&t=1229224ef4da202a4c58160200008e8a
In my current code there is only a small border around the image. You can easily increase the border width if you want, but that’s more detailed stuff we can discuss about later.
My updated code for Diaspora is finished so far. You can see the changes here: https://github.com/ThomasLeister/diaspora/compare/bigpics?expand=1
Let me know if you like the changes. If you do, we can easily merge my code to the Diaspora dev branch and have full-sized images in the next Diaspora* release
Update: Pull request on GitHib: https://github.com/diaspora/diaspora/pull/5500
Update2: Video on YouTube: https://www.youtube.com/watch?v=YMsm9MVl1T0
Note: This discussion was imported from Loomio. Click here to view the original discussion.