mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
Make text more readable
Slightly speed up the metadata parsing
This commit is contained in:
parent
696e72e3e8
commit
454d1f89c8
3 changed files with 13 additions and 13 deletions
|
@ -52,6 +52,7 @@
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
|
|
||||||
color: RGB($fg-white)
|
color: RGB($fg-white)
|
||||||
|
text-shadow: 0px 0px 2px RGB($fg-black)
|
||||||
|
|
||||||
.image-title
|
.image-title
|
||||||
font-size: 0.9rem
|
font-size: 0.9rem
|
||||||
|
@ -72,7 +73,7 @@
|
||||||
object-position: center
|
object-position: center
|
||||||
transform: scale(1.05)
|
transform: scale(1.05)
|
||||||
|
|
||||||
background-color: RGB($fg-white)
|
background-color: RGB($bg-bright)
|
||||||
filter: blur(0.5rem)
|
filter: blur(0.5rem)
|
||||||
opacity: 0
|
opacity: 0
|
||||||
|
|
||||||
|
@ -137,6 +138,7 @@
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
|
|
||||||
color: RGB($fg-white)
|
color: RGB($fg-white)
|
||||||
|
text-shadow: 0px 0px 2px RGB($fg-black)
|
||||||
|
|
||||||
.image-title
|
.image-title
|
||||||
font-size: 0.9rem
|
font-size: 0.9rem
|
||||||
|
@ -158,7 +160,7 @@
|
||||||
|
|
||||||
display: block
|
display: block
|
||||||
|
|
||||||
background-color: RGB($fg-white)
|
background-color: RGB($bg-bright)
|
||||||
|
|
||||||
img
|
img
|
||||||
width: 100%
|
width: 100%
|
||||||
|
@ -171,9 +173,9 @@
|
||||||
object-fit: cover
|
object-fit: cover
|
||||||
object-position: center
|
object-position: center
|
||||||
|
|
||||||
background-color: RGB($fg-white)
|
background-color: RGB($bg-bright)
|
||||||
border-radius: $rad-inner
|
border-radius: $rad-inner
|
||||||
box-shadow: 0 0 0.4rem 0.25rem RGBA($bg-100, 0.25)
|
box-shadow: 0 0 0.4rem 0.25rem RGBA($bg-100, 0.1)
|
||||||
filter: blur(0.5rem)
|
filter: blur(0.5rem)
|
||||||
opacity: 0
|
opacity: 0
|
||||||
|
|
||||||
|
@ -213,9 +215,6 @@
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
.images
|
.images
|
||||||
img
|
|
||||||
box-shadow: 0 0 0.4rem 0.25rem RGBA($bg-100, 0.1)
|
|
||||||
|
|
||||||
&.size-1
|
&.size-1
|
||||||
.data-1
|
.data-1
|
||||||
transform: scale(0.9) rotate(0deg)
|
transform: scale(0.9) rotate(0deg)
|
||||||
|
|
|
@ -79,15 +79,16 @@ class Metadata:
|
||||||
exif[mapping_name][mapping_val[key][0]] = {
|
exif[mapping_name][mapping_val[key][0]] = {
|
||||||
'raw': value,
|
'raw': value,
|
||||||
}
|
}
|
||||||
|
continue
|
||||||
|
|
||||||
# Remove empty keys
|
# Remove empty keys
|
||||||
if len(exif['Photographer']) == 0:
|
if not exif['Photographer']:
|
||||||
del exif['Photographer']
|
del exif['Photographer']
|
||||||
if len(exif['Camera']) == 0:
|
if not exif['Camera']:
|
||||||
del exif['Camera']
|
del exif['Camera']
|
||||||
if len(exif['Software']) == 0:
|
if not exif['Software']:
|
||||||
del exif['Software']
|
del exif['Software']
|
||||||
if len(exif['File']) == 0:
|
if not exif['File']:
|
||||||
del exif['File']
|
del exif['File']
|
||||||
|
|
||||||
return exif
|
return exif
|
||||||
|
|
|
@ -28,7 +28,7 @@ def fnumber(value):
|
||||||
"""
|
"""
|
||||||
Formats the f-number into a standard format
|
Formats the f-number into a standard format
|
||||||
"""
|
"""
|
||||||
return 'f/' + str(value)
|
return 'ƒ/' + str(value)
|
||||||
|
|
||||||
|
|
||||||
def iso(value):
|
def iso(value):
|
||||||
|
@ -59,7 +59,7 @@ def exposure(value):
|
||||||
"""
|
"""
|
||||||
Formats the exposure value into a standard format
|
Formats the exposure value into a standard format
|
||||||
"""
|
"""
|
||||||
return str(value) + 'EV'
|
return str(value) + 'EV'
|
||||||
|
|
||||||
|
|
||||||
def color_space(value):
|
def color_space(value):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue