azurelunatic: Vivid pink Alaskan wild rose. (Default)
Azure Jane Lunatic (Azz) 🌺 ([personal profile] azurelunatic) wrote in [site community profile] dw_suggestions2013-10-13 12:28 am

Control emailed image display sizes

Title:
Control emailed image display sizes

Area:
entries, files

Summary:
In the department of more options, a set-and-forget page-saver for emailed images. Set the maximum dimensions you'd like to display unaltered for attached images, and have the included images automatically use that size version with a link to the full size.

Description:
Modern smartphones take some rather large pictures sometimes. If your post-by-email use case involves a smartphone and pictures, there's the risk of warping your circle's reading pages if you forget to include a <cut> at the end of the message.

One part of the image-handling backend is going to be the resizer, which will generate appropriately sized versions of emailed-in images for thumbnails and not breaking reading pages.

Upon receiving an image attachment, the back end currently saves it somewhere in the user's /file/ area, and appends the relevant <img src="exampleusername.dreamwidth.org/file/12345.jpg" /> on the tail of the entry. It repeats this process for however many image attachments there are.

When activated, my proposed change would cause the back end to save the image attachment somewhere in the user's /file/ directory, and append <a href="http://exampleusername.dreamwidth.org/file/12345.jpg"><img src="exampleusername.dreamwidth.org/file/100x100/12345.jpg" /></a> (or whatever the appropriate size specification is) on the tail of the entry, repeating for however many image attachments there are, generating a scaled version of the appropriate size in accordance with how that bit is supposed to work. Fancier versions might include detecting the size of the image, and omitting the resizing bit if it's below the threshold defined by the user.

How to define this? It would be lovely if I could go in somewhere in my post-by-email settings and declare that I would like to default to images no larger than (pick from a menu of dimensions). Then I would rest secure in the knowledge that should I ever forget, my circle would be safe from my carelessness, and should they still like to view the larger version, there would be a link.

Poll #14596 Control emailed image display sizes
Open to: Registered Users, detailed results viewable to: All, participants: 37


This suggestion:

View Answers

Should be implemented as-is.
27 (73.0%)

Should be implemented with changes. (please comment)
0 (0.0%)

Shouldn't be implemented.
0 (0.0%)

(I have no opinion)
10 (27.0%)

(Other: please comment)
0 (0.0%)