derpibooru / philomena

Next-generation imageboard
https://derpibooru.org/
GNU Affero General Public License v3.0
218 stars 58 forks source link

Add setting to serve partially scaled images first #254

Closed Bitz closed 3 years ago

Bitz commented 3 years ago

Is your feature request related to a problem? Please describe. Devices that support higher DPI displayed images are served the data-scaled="true". (That is, assuming you have not messed with your setting to serve the data-scaled="false" version.) The is perfectly fine until you start zooming on the image, at which point, you must click on the image once to be served the data-scaled="partscaled" version of the image, which provides the full resolution image, albeit scaled to fit the screen size, which is perfect.

Describe the solution you'd like Add a setting, similar to the Scale large images setting that will serve the data-scaled="partscaled" version by default. Or rather, adjust the current "Scale Larger Images" option to include a third option that does this.

Describe alternatives you've considered I've been doing something similar by using "Scale large images = true" and a bit of CSS to achieve the same result, but this obviously limited to desktop browsers that allow CSS Injection Extensions.

Additional context I spoke to Pharynx on this a bit and he seems to like the idea.