Ideas regarding pictures

I’ve tried to add several modifications regarding pictures to diaspora* recently but they revealed to be controversial. So I open this thread to discuss about it.

The first one (#6244) is about modifying the way pictures are resized on mobile view. Currently, the largest size is resized down to 300px which appears to degrade image quality for pictures that present a big height (associated issue: #6248). As proposed by Steffen, this PR resizes width to 300px and crop height to 500px if necessary.

My opinion is that this is a nice solution, used in association with the Bluimp gallery on mobile, to improve navigation on stream with lots of images.

The second is about displaying full-size images inside the gallery on desktop view (#6549). I think resize images down to 700px on desktop view does not make sence anymore. Some users are posting beautiful images on diaspora* but one can’t benefit seeing them correctly because they appear really small on large screens.


Note: This discussion was imported from Loomio. Click here to view the original discussion.

Hi, I agree with your proposition about displaying full size image. That make sens with the nice image viewer diaspora has now (dev branch).
If I am not mistaken admin can set a size limit in Mo for images, I am just wondering how this goes when the image is to big : upload rejected or resized (smaller, less Mo) to be under the limit size ?
Because I guess that resizing to 700pix makes less disk usage space in the server, so it is necessary to think how admin can limit image space usage on their server if necessary.

If I am not mistaken admin can set a size limit in Mo for images

Yep. Though I don’t know if there’s a limit by default.

+1 for original size on desktop views. Just make sure the viewer fits it on the screen :stuck_out_tongue: People can always download it then to look closer.

Also, any chance of making the “right click to download image” work? Annoying having to do “background image” first to save :slight_smile:

The “right click to download image” does work on my computer (iceweasel (aka firefox) latest version).

@loelo what pod version is that, stable or development? I believe we’re talking only about the new gallery in development.

Hi, the version is 0.5.99.0-pfbbe94fb which is dev isn’t it ?

Also, any chance of making the “right click to download image” work? Annoying having to do “background image” first to save :slight_smile:

This should have been solved by #6536.

Awesome, need to upgrade then! :slight_smile:

I’d like to retain some kind of resizing for page load, with the full-sized image available on click. Otherwise a gallery of 20 images could load at well over 100MB…

I’d like to retain some kind of resizing for page load, with the full-sized image available on click. Otherwise a gallery of 20 images could load at well over 100MB…

I’m talking about using full-size images inside gallery only.

I’d love some ideas for a local lightweight image resizing proxy for mobile views.

Large images can take ages to render on some older phones.
(large images probably need too much ram on the phone)

not sure if it can be done without needing too much ram on the server.