Skip to content

Commit

Permalink
Merge pull request #41 from OpenPecha/feat/logo-ratio-resize
Browse files Browse the repository at this point in the history
Feat/logo ratio resize
  • Loading branch information
Lungsangg authored Feb 15, 2024
2 parents eb56788 + 20f3aae commit 421cc46
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sefaria/image_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def make_img_http_response(text, category, ref_str, lang, platform):
height = platforms[platform]["height"]
width = platforms[platform]["width"]
img = Image.new('RGBA', (width, height), color="#18345D")
logo = Image.open("static/img/logo.png")
logo = Image.open("static/img/logo-white.png")
logo.thumbnail((400, 400))
logo_padded = Image.new('RGBA', (width, height))
logo_padded.paste(logo, (int(width/2-logo.size[0]/2), int(height/2-logo.size[1]/2)))
Expand Down
Binary file added static/img/loading-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/logo-white-hebrew.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/logo-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions templates/elements/loading.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<div id="appLoading">
<div class='loadingMessage'>
{% if SITE_SETTINGS.TORAH_SPECIFIC %}
<img class="int-en" src="{% static 'img/logo.png' %}" alt="Sefaria Loading Icon" />
<img class="int-he" src="{% static 'img/logo.png' %}" alt="Sefaria Loading Icon" />
<img class="int-en" src="{% static 'img/loading-logo.png' %}" alt="Sefaria Loading Icon" />
<img class="int-he" src="{% static 'img/loading-logo.png' %}" alt="Sefaria Loading Icon" />
<br>
{% endif %}
<div class="smallText">
Expand Down

0 comments on commit 421cc46

Please sign in to comment.