Permalink
Browse files

Special-case local file hosting so images look nicer.

  • Loading branch information...
1 parent f3e779c commit bdc5de39d1d1909a7761e538eb68ab97f44d7074 @taylorhughes taylorhughes committed Jul 26, 2016
Showing with 4 additions and 1 deletion.
  1. +4 −1 backend/lk/logic/screenshot_bundler.py
@@ -169,7 +169,10 @@ def _build_and_send_bundle(bundle_id):
download_items = []
for upload_name, image_url in zip(bundle.upload_names, image_urls):
- if bundle.hq:
+ if '/_ah/img/' in image_url:
+ # for local debug images, don't specify =s0, because quality gets degraded.
+ full_image_url = image_url
+ elif bundle.hq:
# for an HQ bundle, request PNG format for the download.
full_image_url = image_url + '=s0-rp'
else:

0 comments on commit bdc5de3

Please sign in to comment.