talklittle / reddit-is-fun

OLD VERSION 1.3 of reddit is fun -- Android app to interact with reddit.com
GNU General Public License v3.0
372 stars 157 forks source link

Add option to resize direct imgur links #87

Open tj111 opened 14 years ago

tj111 commented 14 years ago

This might fall slightly out of the scope of what reddit-is-fun is trying to accomplish, but would be immensely helpful, especially when not on wi-fi (in slow spots). Since such a large number of posts to reddit are direct links to imgur images, I think it would be nice to have the option to automatically use imgur's image resizing features in the links (e.g. use the 'large' size of all images).

It's easy to do with a little regex, simply put a lowercase L (l) at the end of the imgur link before the file extension. This will scale down large images that eat up lots of bandwidth on 3g and allow them to load much faster. Here's how to do it.

Regular image: http://i.imgur.com/XXXXX.png (big image) Resized URL: http://i.imgur.com/XXXXXl.png

Here's an example of one in action: http://i.imgur.com/iUy9X.jpg (normal size) http://i.imgur.com/iUy9Xl.jpg (large size)

Note that there are also medium and small sizes too: http://i.imgur.com/iUy9Xm.jpg (medium) http://i.imgur.com/iUy9Xs.jpg (small)

talklittle commented 14 years ago

Cool, I didn't realize imgur had this feature. I'd say it belongs in the app. Thanks for the suggestion!