Final tweeks.
This commit is contained in:
parent
e3e8e3297d
commit
68a1f42e34
@ -1,6 +1,7 @@
|
||||
from CachePath import *
|
||||
from datetime import datetime
|
||||
import json
|
||||
import os
|
||||
import os.path
|
||||
from PIL import Image
|
||||
from PIL.ExifTags import TAGS
|
||||
@ -224,7 +225,8 @@ class Photo(object):
|
||||
try:
|
||||
image.save(thumb_path, "JPEG")
|
||||
except:
|
||||
os.path.unlink(thumb_path)
|
||||
print "Could not thumbnail %s" % thumb_path
|
||||
os.unlink(thumb_path)
|
||||
|
||||
def _thumbnails(self, image, thumb_path):
|
||||
mirror = image
|
||||
|
@ -62,6 +62,7 @@ a:hover {
|
||||
font-size: 2.5em;
|
||||
line-height: 0;
|
||||
top: 40%;
|
||||
font-weight: bold;
|
||||
}
|
||||
#back {
|
||||
left: .5em;
|
||||
@ -105,7 +106,7 @@ a:hover {
|
||||
}
|
||||
#metadata {
|
||||
background-color: #000000;
|
||||
width: 270px;
|
||||
width: 340px;
|
||||
font-size: 12px;
|
||||
line-height: 12px;
|
||||
padding-top: 3px;
|
||||
|
@ -281,7 +281,7 @@ $(document).ready(function() {
|
||||
.css("padding-top", 0)
|
||||
.css("padding-bottom", 0)
|
||||
.show()
|
||||
.animate({ height: 16 * 11, paddingTop: 3, paddingBottom: 3 }, "slow", function() {
|
||||
.animate({ height: 16.3 * 11, paddingTop: 3, paddingBottom: 3 }, "slow", function() {
|
||||
$("#metadata-link").text($("#metadata-link").text().replace("show", "hide"));
|
||||
});
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user