We have clarified our Privacy Statement. Please have a look at our changes.
Browse Source

Use CSS to tell browser to respect image orientation EXIF tag. Closes #13

pull/16/head
Jason J. Gullickson 4 weeks ago
parent
commit
94439f634b
4 changed files with 10 additions and 1 deletions
  1. +4
    -0
      css/multi-col.css
  2. +5
    -0
      css/single-col.css
  3. BIN
      humanhash.pyc
  4. +1
    -1
      preposter.us.py

+ 4
- 0
css/multi-col.css View File

@@ -88,3 +88,7 @@ a {
font-size: 90%;
}
}

img {
image-orientation: from-image;
}

+ 5
- 0
css/single-col.css View File

@@ -78,3 +78,8 @@ a {
font-size: 90%;
}
}

img {
image-orientation: from-image;
}


BIN
humanhash.pyc View File


+ 1
- 1
preposter.us.py View File

@@ -83,7 +83,7 @@ def unpack_message(uid, message, blog_dir):
html_body = html_body.replace(cid, 'assets/%s' % filename)
else:
# otherwise, just embed the file
email_body = email_body + '<div class=\'holder\'><a href=\'assets/%s\'><img src=\'assets/%s\'></a></div>' % (filename, filename)
email_body = email_body + '<a href=\'assets/%s\'><img src=\'assets/%s\'></a>' % (filename, filename)
# handle video
if filename.find('.mov') > 0 or filename.find('.mp4') > 0 or filename.find('.ogg') > 0 :

Loading…
Cancel
Save